diff options
Diffstat (limited to 'pcr/mkbootimg')
-rw-r--r-- | pcr/mkbootimg/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pcr/mkbootimg/PKGBUILD b/pcr/mkbootimg/PKGBUILD new file mode 100644 index 000000000..4f2598931 --- /dev/null +++ b/pcr/mkbootimg/PKGBUILD @@ -0,0 +1,33 @@ +# Based on android-tooks PKGBUILD in community +# (git://git.archlinux.org/svntogit/community.git) which has the following +# header: +# Maintainer: Anatol Pomozov +# Contributor: 謝致邦 <Yeking@Red54.com> +# Contributor: Alucryd <alucryd at gmail dot com> + +# Maintainer (AUR): Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> + +# parabola changes and rationale: +# no changes. + +pkgname=mkbootimg +pkgver=31.0.0 +_tag=${pkgver}p1 # https://github.com/nmeum/android-tools carries extra patch version on top of the upstream versioning +pkgrel=2 +pkgdesc='Tool to create and/or unpack Android boot images' +arch=('any') +url='https://github.com/nmeum/android-tools' +license=(Apache MIT) +# python: for mkbootimg & avbtool scripts +# python2: for unpack_bootimg script +depends=(python python2) +source=(https://github.com/nmeum/android-tools/releases/download/$_tag/android-tools-$_tag.tar.xz) +sha256sums=('51a4c3ba5f16945905449c4bd2c1c781a4df7469f6b7362f8837f4f640d8c7b6') + +package() { + cd android-tools-$_tag + + install -d "$pkgdir"/usr/bin/ + install -m 755 vendor/mkbootimg/mkbootimg.py "$pkgdir"/usr/bin/mkbootimg + install -m 755 vendor/mkbootimg/unpack_bootimg.py "$pkgdir"/usr/bin/unpack_bootimg +} |