pkg-genimage/PKGBUILD

49 lines
992 B
Bash
Raw Normal View History

2024-03-20 05:50:20 +08:00
# Maintainer: Filipe Bertelli <filipebertelli@tutanota.com>
# Maintainer: BigfootACA <bigfoot@classfun.cn>
pkgname=genimage
pkgver=17.r6.gd97c672
pkgrel=1
pkgdesc="Tool to generate multiple filesystem and flash images from a tree"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
2024-04-30 02:34:45 +08:00
url=https://github.com/pengutronix/genimage
2024-03-20 05:50:20 +08:00
license=(GPL-2.0-only)
depends=(confuse)
optdepends=(
'cramfs-tools: mkcramfs'
'genext2fs'
2024-04-30 02:34:45 +08:00
'qemu-tools: qemu-img'
2024-03-20 05:50:20 +08:00
'uboot-tools: mkimage'
'rauc'
2024-04-30 02:34:45 +08:00
'android-simg2img: simg2img'
2024-03-20 05:50:20 +08:00
'simg-tools: simg2img'
)
makedepends=(git)
2024-04-30 02:34:45 +08:00
source=(git+https://gitea.classfun.cn:4443/mirrors/genimage.git)
2024-03-20 05:50:20 +08:00
sha256sums=(SKIP)
pkgver(){
cd "${srcdir}/${pkgname%-git}"
git describe --long --tags | sed 's/^v//g' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
./autogen.sh
./configure \
--prefix=/usr \
--enable-silent-rules \
--disable-dependency-tracking
make
}
check() {
cd "$pkgname"
make -k check
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
}