2014-11-17 10:08:13 +01:00
|
|
|
# Template file for 'android-tools'
|
|
|
|
pkgname=android-tools
|
2015-04-12 09:01:12 +02:00
|
|
|
_version=5.1.0_r3
|
2015-04-03 21:36:06 +02:00
|
|
|
version=${_version/_/}
|
|
|
|
revision=1
|
2014-11-17 10:08:13 +01:00
|
|
|
create_wrksrc=yes
|
|
|
|
build_style=gnu-makefile
|
|
|
|
hostmakedepends="git"
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends="zlib-devel libressl-devel pcre-devel"
|
2014-11-17 10:08:13 +01:00
|
|
|
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-04-03 21:36:06 +02:00
|
|
|
git clone -b android-${_version} \
|
2014-11-17 10:08:13 +01:00
|
|
|
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
|
|
|
|
}
|
2015-03-12 14:11:11 +01:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vsv adb
|
|
|
|
}
|