From 37207d85402bdf0d29f7dbf6298891f2287566c7 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Tue, 9 Jun 2015 20:57:09 +0200 Subject: [PATCH] Initial import --- .SRCINFO | 19 +++++++++++++++++++ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..587767c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = abootimg-git + pkgdesc = A tool to read/write/update android boot images + pkgver = 0.6.r6.g1ebeb39 + pkgrel = 1 + url = http://gitorious.org/ac100/abootimg + arch = i686 + arch = x86_64 + arch = arm + arch = armv7h + license = GPL + makedepends = git + depends = util-linux + depends = cpio + provides = abootimg + source = git+https://gitlab.com/ajs124/abootimg.git + sha256sums = SKIP + +pkgname = abootimg-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..fc8cc37 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: ajs124 < aur AT ajs124 DOT de > +# Contributor: Benoit Favre +# Contributor: Thomas Hebb + +pkgname=abootimg-git +pkgver=0.6.r6.g1ebeb39 +pkgrel=1 +pkgdesc="A tool to read/write/update android boot images" +arch=('i686' 'x86_64' 'arm' 'armv7h') +url="http://gitorious.org/ac100/abootimg" +license=('GPL') +depends=('util-linux' 'cpio') +makedepends=('git') +provides=('abootimg') +# upstream seems dead and gitorious is about to shut down -> use my mirror +#source=('git+https://gitorious.org/ac100/abootimg.git') +source=('git+https://gitlab.com/ajs124/abootimg.git') +sha256sums=('SKIP') + +pkgver() { + cd "abootimg" + git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' +} + +build() { + cd "${srcdir}/abootimg" + + make + gzip -f debian/abootimg.1 +} + +package() { + cd "${srcdir}/abootimg" + + install -d "${pkgdir}/usr/bin" "${pkgdir}/usr/share/man/man1/" + install -t "${pkgdir}/usr/bin" abootimg abootimg-pack-initrd abootimg-unpack-initrd + install -t "${pkgdir}/usr/share/man/man1/" debian/abootimg.1.gz +}