void-packages/srcpkgs/android-tools/template
2018-03-04 12:28:36 +00:00

36 lines
1.1 KiB
Bash

# Template file for 'android-tools'
pkgname=android-tools
_distver=7.0.0_r5
# 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
version=${_distver/_/}
revision=6
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 GPL-2"
homepage="http://developer.android.com/tools/help/adb.html"
broken="https://github.com/voidlinux/void-packages/issues/9146"
do_fetch() {
local r
for r in system/core system/extras external/libselinux external/f2fs-tools external/gtest external/safe-iop; do
git clone -b android-${_distver} \
https://android.googlesource.com/platform/$r \
${pkgname}-${version}/$(basename $r)
done
}
post_install() {
vlicense gtest/COPYING
vsv adb
}
# REMARKS:
# If there is any reason at all that fastboot may not be a position independent
# executable, please document it here.