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

30 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Google Android SDK için platform-araçları (adb ve fastboot)
2017-06-30 21:18:09 +02:00
# URL: http://developer.android.com/sdk/index.html
2017-12-22 22:59:36 +01:00
# Paketçi: CihanAlkan
2017-10-27 20:46:27 +02:00
# Gerekler: ncurses zlib
2017-12-22 22:59:36 +01:00
# Grup: geliştirme
2017-06-30 21:18:09 +02:00
2017-10-28 14:10:23 +02:00
isim=android-sdk-platform-tools
surum=r26.0.0
devir=1
kaynak=(https://dl-ssl.google.com/android/repository/platform-tools_$surum-linux.zip
2017-12-22 22:59:36 +01:00
license.html
source.properties)
2017-06-30 21:18:09 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
install -Dm644 $SRC/license.html usr/share/licenses/$isim/license.html
2017-06-30 21:18:09 +02:00
cd $PKG
mkdir -p opt etc/profile.d
2017-10-28 14:10:23 +02:00
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}
2017-06-30 21:18:09 +02:00
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/
}