pkg-abootimg/PKGBUILD

46 lines
1.2 KiB
Bash
Raw Normal View History

2024-09-19 21:26:35 +08:00
# Maintainer: BigfootACA <BigfootACA@classfun.cn>
# Maintainer: Bailey Fox <bfox200012@gmail.com>
# Contributor: ajs124 < aur AT ajs124 DOT de >
2015-06-10 02:57:09 +08:00
# Contributor: Benoit Favre <benoit.favre@gmail.com>
# Contributor: Thomas Hebb <tommyhebb@gmail.com>
2024-09-19 21:26:35 +08:00
pkgname=abootimg
pkgver=r38.7e127fe
2015-06-10 02:57:09 +08:00
pkgrel=1
pkgdesc="A tool to read/write/update android boot images"
2024-09-19 21:26:35 +08:00
arch=('i686' 'x86_64' 'arm' 'armv7h' 'aarch64')
url="https://github.com/ggrandou/abootimg"
2015-06-10 02:57:09 +08:00
license=('GPL')
depends=('util-linux' 'cpio')
makedepends=('git')
2024-09-19 21:26:35 +08:00
provides=('abootimg-git')
source=('git+https://gitea.classfun.cn:4443/mirrors/abootimg.git'
'no-initrd.patch')
sha256sums=('SKIP'
'5fe9400e71f1ade170c1e0e99f343881edca2022300c7e7a1d34d776c22cc126')
2015-06-10 02:57:09 +08:00
pkgver() {
cd "abootimg"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/abootimg"
patch -p0 --binary < ../no-initrd.patch
2015-06-10 02:57:09 +08:00
}
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
}