milis/talimatname/genel/a/android-sdk-platform-tools/talimat

29 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Google Android SDK için platform-araçları (adb ve fastboot)
# URL: http://developer.android.com/sdk/index.html
# Paketçi: Cihan Alkan
# Gerekler: ncurses zlib
isim=android-sdk-platform-tools
surum=r26.0.0
devir=1
kaynak=(https://dl-ssl.google.com/android/repository/platform-tools_$surum-linux.zip
license.html
source.properties)
derle() {
install -Dm644 $SRC/license.html usr/share/licenses/$isim/license.html
cd $PKG
mkdir -p opt etc/profile.d
echo 'export PATH=$PATH:/opt/android-sdk/platform-tools' > "etc/profile.d/$isim.sh"
echo 'setenv PATH ${PATH}:/opt/android-sdk/platform-tools' > "etc/profile.d/$isim.csh"
chmod 755 etc/profile.d/$isim.{csh,sh}
mkdir -p opt/android-sdk
cp -a $SRC/platform-tools $PKG/opt/android-sdk/platform-tools
install -m644 $SRC/source.properties $PKG/opt/android-sdk/platform-tools/source.properties
chmod +Xr -R $PKG/opt/android-sdk/platform-tools
mkdir $PKG/usr
mkdir $PKG/usr/bin
ln -s /opt/android-sdk/platform-tools/adb $PKG/usr/bin/
ln -s /opt/android-sdk/platform-tools/fastboot $PKG/usr/bin/
}