29 lines
832 B
Text
29 lines
832 B
Text
|
# Template file for 'android-tools'
|
||
|
pkgname=android-tools
|
||
|
version=5.0.0_r6
|
||
|
revision=1
|
||
|
create_wrksrc=yes
|
||
|
build_style=gnu-makefile
|
||
|
hostmakedepends="git"
|
||
|
makedepends="zlib-devel libressl-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"
|
||
|
update_site="https://android.googlesource.com/platform/system/core"
|
||
|
update_pattern='android-\K[\d._r]+'
|
||
|
|
||
|
do_fetch() {
|
||
|
local r
|
||
|
for r in system/core system/extras external/libselinux external/f2fs-tools; do
|
||
|
git clone -b android-${version} \
|
||
|
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
|
||
|
}
|