blob: 7c2ee5283982458ce33907d2a2fc2479d72cddc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Alexey Andreyev <aa13q@ya.ru>
pkgname=android-unpackbootimg
_srcname=android-unpackbootimg
pkgver=r9.b92cac0
pkgrel=1
pkgdesc="Tools to work with Android boot images"
arch=('armv7h' 'i686' 'x86_64' 'aarch64')
url="https://github.com/anestisb/android-unpackbootimg"
license=('Apache')
makedepends=('make')
optdepends=('python')
conflicts=()
source=(
"${pkgname}::git+${url}.git"
)
sha256sums=('SKIP')
options=(!makeflags)
pkgver() {
cd "${srcdir}/${pkgname}"
( set -o pipefail
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
) 2>/dev/null
}
build() {
cd "${srcdir}/${pkgname}"
make
}
package() {
cd "${srcdir}/${pkgname}"
mkdir -p "${pkgdir}/usr/bin"
install -m 755 -t "${pkgdir}/usr/bin" "${srcdir}/${pkgname}/mkbootimg"
install -m 755 -t "${pkgdir}/usr/bin" "${srcdir}/${pkgname}/mkbootimg.py"
install -m 755 -t "${pkgdir}/usr/bin" "${srcdir}/${pkgname}/unpackbootimg"
}
|