wok-current view android-platform-tools/receipt @ rev 25376
updated tzdata (2019c -> 2022a)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 10:43:02 2022 +0100 (2022-07-30) |
parents | a1b12ae1c852 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="android-platform-tools"
4 VERSION="r19.0.1"
5 CATEGORY="development"
6 SHORT_DESC="Platform-Tools for Google Android SDK (adb and fastboot)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="custom"
9 SOURCE="platform-tools"
10 TARBALL="${SOURCE}_${VERSION}-linux.zip"
11 WEB_SITE="https://developer.android.com"
12 WGET_URL="http://dl-ssl.google.com/android/repository/$TARBALL"
13 HOST_ARCH="i486"
15 DEPENDS="android-sdk"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://developer.android.com/studio/releases/platform-tools 2>/dev/null | \
21 sed '/<h4 id/!d;s|.*">|r|;s| .*||;q'
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p ${fs}/opt/android-sdk ${fs}/usr/bin
28 cp -a ${src} ${fs}/opt/android-sdk/${SOURCE}
29 chmod -R +Xr ${fs}/opt/android-sdk/${SOURCE}
30 ln -s /opt/android-sdk/platform-tools/adb ${fs}/usr/bin
31 }