wok-current view android-platform-tools/receipt @ rev 24966
updated nettle and nettle-dev (3.5.1 -> 3.7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 25 07:28:45 2022 +0100 (2022-04-25) |
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 }