void-packages/srcpkgs/android-tools/template

35 lines
985 B
Bash
Raw Normal View History

# Template file for 'android-tools'
pkgname=android-tools
2015-08-14 06:52:38 +00:00
_distver=5.1.1_r13
# NOTE: not all upstream updates has code changes for the parts
# of android used by android-tools. Check for diff with:
# curl -L http://git.io/vvC0Z | sh -s 5.0.2_r1 5.1.0_r1
2015-07-30 05:14:44 +00:00
version=${_distver/_/}
revision=1
create_wrksrc=yes
build_style=gnu-makefile
hostmakedepends="git"
makedepends="zlib-devel libressl-devel pcre-devel"
short_desc="Android platform tools (adb and fastboot)"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="Apache-2.0 BSD"
homepage="http://developer.android.com/tools/help/adb.html"
do_fetch() {
local r
for r in system/core system/extras external/libselinux external/f2fs-tools; do
2015-07-30 05:14:44 +00:00
git clone -b android-${_distver} \
https://android.googlesource.com/platform/$r \
${pkgname}-${version}/$(basename $r)
done
}
pre_build() {
sed -i 's/f2fs_sparse_file = NULL/f2fs_sparse_file = 0/g' \
extras/f2fs_utils/f2fs_utils.c
}
post_install() {
vsv adb
}