29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
# Description: Google Android SDK için platform-araçları (adb ve fastboot)
|
||
# URL: http://developer.android.com/sdk/index.html
|
||
# Packager: Cihan Alkan
|
||
# Depends on: ncurses zlib
|
||
|
||
name=android-sdk-platform-tools
|
||
version=r26.0.0
|
||
release=1
|
||
source=(https://dl-ssl.google.com/android/repository/platform-tools_$version-linux.zip
|
||
license.html
|
||
source.properties)
|
||
|
||
build() {
|
||
install -Dm644 $SRC/license.html usr/share/licenses/$name/license.html
|
||
cd $PKG
|
||
mkdir -p opt etc/profile.d
|
||
echo 'export PATH=$PATH:/opt/android-sdk/platform-tools' > "etc/profile.d/$name.sh"
|
||
echo 'setenv PATH ${PATH}:/opt/android-sdk/platform-tools' > "etc/profile.d/$name.csh"
|
||
chmod 755 etc/profile.d/$name.{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/
|
||
}
|