summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-05-05 17:15:03 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-05-05 17:19:40 +0200
commit9ecddaa4f9562ddf65311b42c228b13e1adafc0a (patch)
treedbc8297ad6fa83cfad7dd178195f4dedd393d356
parent01ed479a8e270be8bdc36b1accd4b484a9107f51 (diff)
downloadabslibre-9ecddaa4f9562ddf65311b42c228b13e1adafc0a.tar.gz
abslibre-9ecddaa4f9562ddf65311b42c228b13e1adafc0a.tar.bz2
abslibre-9ecddaa4f9562ddf65311b42c228b13e1adafc0a.zip
pcr: Add mkbootimg 31.0.0 from Aur
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--pcr/mkbootimg/PKGBUILD33
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
+}