2017-09-10 10:18:31 +00:00
|
|
|
pkgname=abootimg
|
|
|
|
pkgver=0.6_git20150325
|
2019-12-28 13:10:11 +00:00
|
|
|
_commit="1ebeb393252ab5aeed62e34bc439b6728444f06e"
|
|
|
|
pkgrel=1
|
2017-09-10 10:18:31 +00:00
|
|
|
pkgdesc="A tool to read/write/update android boot images"
|
|
|
|
url="https://gitlab.com/ajs124/abootimg"
|
2019-12-28 13:10:11 +00:00
|
|
|
arch="all"
|
|
|
|
license="GPL-2.0-or-later"
|
2017-09-10 10:18:31 +00:00
|
|
|
makedepends="linux-headers util-linux-dev"
|
|
|
|
subpackages="$pkgname-doc"
|
2019-12-28 13:10:11 +00:00
|
|
|
source="$pkgname-$_commit.tar.gz::https://gitlab.com/ajs124/abootimg/-/archive/$_commit/abootimg-$_commit.tar.gz"
|
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
options="!check" # no test suite
|
2017-09-10 10:18:31 +00:00
|
|
|
|
|
|
|
prepare() {
|
2019-12-28 13:10:11 +00:00
|
|
|
default_prepare
|
|
|
|
|
2017-09-10 10:18:31 +00:00
|
|
|
# Makefile tries to run git otherwise
|
2019-02-09 16:11:49 +00:00
|
|
|
echo "#define VERSION_STR \"$pkgver-$_commit\"" > "$builddir"/version.h
|
2017-09-10 10:18:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-12-28 13:10:11 +00:00
|
|
|
install -Dm755 abootimg "$pkgdir"/usr/bin/abootimg
|
|
|
|
install -Dm755 abootimg-pack-initrd "$pkgdir"/usr/bin/abootimg-pack-initrd
|
|
|
|
install -Dm755 abootimg-unpack-initrd "$pkgdir"/usr/bin/abootimg-unpack-initrd
|
2017-09-10 10:18:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
doc() {
|
2019-12-28 13:10:11 +00:00
|
|
|
cd "$builddir"
|
|
|
|
gzip debian/abootimg.1
|
|
|
|
install -Dm644 debian/abootimg.1.gz \
|
2017-09-10 10:18:31 +00:00
|
|
|
"$subpkgdir"/usr/share/man/man1/abootimg.1.gz
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-12-28 13:10:11 +00:00
|
|
|
sha512sums="224157ca7af4b9a8bde8e33dcbccd7df5a9dbf2ca9be7c2ad60f41cebd5cbb0d796b96da9a17dea29c97a8909cf3fe265dea6e849dc229bc99c4f68909213141 abootimg-1ebeb393252ab5aeed62e34bc439b6728444f06e.tar.gz"
|