wok-current view android-sdk/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | 6e8b1bcb30e2 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="android-sdk"
4 VERSION="r22.6.2"
5 CATEGORY="development"
6 SHORT_DESC="Google Android SDK."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="custom"
9 TARBALL="${PACKAGE}_${VERSION}-linux.tgz"
10 WEB_SITE="https://developer.android.com"
11 WGET_URL="http://dl.google.com/android/$TARBALL"
12 HOST_ARCH="i486"
14 DEPENDS="java-jre"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://developer.android.com/studio/releases/sdk-tools.html 2>/dev/null | \
20 sed '/SDK Tools, Revision/!d;s|.*Revision |r|;s| .*||;q'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p ${fs}/opt ${fs}/usr/bin ${fs}/usr/share/pixmaps
27 cp -a ${src} ${fs}/opt/${PACKAGE}
28 rm -f ${fs}/opt/${PACKAGE}/tools/*64-*
29 chmod -R o=g ${fs}/opt/${PACKAGE}
30 # TazDroid
31 cp -a ${stuff}/tazdroid ${fs}/usr/bin
32 cp ${stuff}/android.png ${fs}/usr/share/pixmaps
33 }