pkgname=mkbootimg
pkgver=2017.12.13
pkgrel=0
pkgdesc="Android bootimg creation tool"
url="https://github.com/osm0sis/mkbootimg"
arch="all"
license="APACHE2"
depends=""
provides="unpackbootimg"
subpackages=""
source="$pkgname.tar.gz::https://github.com/osm0sis/$pkgname/archive/$pkgver.tar.gz"
options="!check"
workdir="$pkgname-$pkgver"

build() {
	make -j1
}

package() {
	install -Dm755 "$srcdir/$workdir/mkbootimg" "${pkgdir}/usr/bin/mkbootimg"
	install -Dm755 "$srcdir/$workdir/unpackbootimg" "${pkgdir}/usr/bin/unpackbootimg"
}

sha512sums="39820ee581f007b6e7c69f83ae6d54e99d32869604d1a960421c0c588fa55917f686104782b1e5ff5cb586f7efb19e9b9db11e69031cbb5e22462ab9d39cdc20  mkbootimg.tar.gz"
