diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-08-16 22:11:06 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-08-17 16:05:38 +0200 |
commit | 3ca4d5a04ac3d7bf7a9e2d3de8218b70794015dd (patch) | |
tree | 636ec743c984fffd3b04df5108449a6086928fd4 /testing/android-tools/APKBUILD | |
parent | 08410047d5b416222036b0689484f09746a30b51 (diff) | |
download | aports-3ca4d5a04ac3d7bf7a9e2d3de8218b70794015dd.tar.bz2 aports-3ca4d5a04ac3d7bf7a9e2d3de8218b70794015dd.tar.xz |
testing/android-tools: new aport
Diffstat (limited to 'testing/android-tools/APKBUILD')
-rw-r--r-- | testing/android-tools/APKBUILD | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/testing/android-tools/APKBUILD b/testing/android-tools/APKBUILD new file mode 100644 index 0000000000..756b5d3142 --- /dev/null +++ b/testing/android-tools/APKBUILD @@ -0,0 +1,73 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> +pkgname=android-tools +_realver=5.1.1_r13 +pkgver=${_realver/_/} +pkgrel=0 +pkgdesc="Android platform tools" +url="http://tools.android.com/" +arch="all" +license="Apache BSD" +depends="" +depends_dev="openssl-dev pcre-dev" +makedepends="$depends_dev linux-headers bsd-compat-headers" +install="" +subpackages="" +source="http://dev.alpinelinux.org/archive/$pkgname/core-$_realver.tar.gz + http://dev.alpinelinux.org/archive/$pkgname/extras-$_realver.tar.gz + http://dev.alpinelinux.org/archive/$pkgname/libselinux-$_realver.tar.gz + http://dev.alpinelinux.org/archive/$pkgname/f2fs-tools-$_realver.tar.gz + Makefile" + +_giturl="https://android.googlesource.com/platform" +_gittag="android-$_realver" + +snapshot() { + mkdir -p "$srcdir" && cd "$srcdir" + + local r= + for r in system/core system/extras external/libselinux external/f2fs-tools; do + local n="${r##*/}.git" + local f="${r##*/}" + + if [ -d "$n" ]; then + git --git-dir $n fetch || return 1 + else + git clone --bare $_giturl/$r || return 1 + fi + + git --git-dir $n archive --prefix $f/ -o "$srcdir"/$f-$_realver.tar.gz $_gittag + scp "$srcdir"/$f-$_realver.tar.gz dev.alpinelinux.org:/archive/$pkgname/ + done +} + +prepare() { + cd "$srcdir" + sed -e 's/f2fs_sparse_file = NULL/f2fs_sparse_file = 0/g' \ + -i extras/f2fs_utils/f2fs_utils.c || return 1 +} + +build() { + make -C "$srcdir" +} + +package() { + make DESTDIR="$pkgdir" \ + -C "$srcdir" install +} + +md5sums="e9946249028d9c03cd9d1b5ddce64115 core-5.1.1_r13.tar.gz +e8da77f958f96c42f4d72dddf06cec80 extras-5.1.1_r13.tar.gz +3eb04ef3f8ef96a4a9edd9bbde04354c libselinux-5.1.1_r13.tar.gz +e3436012ef8e572af0fbaddbed408928 f2fs-tools-5.1.1_r13.tar.gz +fab5e5dda238b0658d241029894a2da7 Makefile" +sha256sums="e76af99540fdbda228ed1e1653a66c37de62704e1927ded32257b480cec35063 core-5.1.1_r13.tar.gz +ee7fd083a1cf1952bee3f0fd60a5345269b62634013ecb832113fb93283ed22d extras-5.1.1_r13.tar.gz +05426dd4b7597c2baae7bd59fafc1077eba98634389d4c32b19ead32c0e90b6e libselinux-5.1.1_r13.tar.gz +a520c6e52d82626081ff414d90121d73c02292e1a148ebf1ca3bd48b5d0af0bc f2fs-tools-5.1.1_r13.tar.gz +7913d8ba35873e8224e2efe38f035d2eaebfd24fcdf06c4ea6d0795a4010192d Makefile" +sha512sums="8791c63ee633de2bad72b6e6de256d05328f46d0fc5bb12cd57013b7fef47d80354a675457951e2bf2a6f07328f35c83d06f1023d4bc6274723cf6d0d97ca4db core-5.1.1_r13.tar.gz +f64d16227495a8861265b64744cf7999c39745b2d4bdbe0bd342afc8603623d949a2b2ab11b0d619e91b263848b5c912bd547d27ff020c925fc0f1d2f0f9d60c extras-5.1.1_r13.tar.gz +a61055c53afbeed356013e265cf5ef842a58f3e8d8f23450a74c53079f6efb4cfbcd4b53e8b0db1c95eb4339e7b04c65a82542692fb850d9bf5c6fd35b06f57f libselinux-5.1.1_r13.tar.gz +7025658b154065fb1659272f488d8415f5a325bdfab985c07a53097db6b5eed440f8f88a95a51a02a78bee0c657a0da13bbf6010cdba2cbadd0cc072e3fb163b f2fs-tools-5.1.1_r13.tar.gz +07aedfba9a401e329aa7790b696b43f4d6993cbaa9cd6f5022b4bcd79c55b7cf8394fd812c697d9837496d1d5bda0db8912f4d8f460b9f6a834ce590aab05476 Makefile" |