pkg-genimage/PKGBUILD
BigfootACA 0ec8aab028
Some checks failed
gitea/pkg-genimage/pipeline/head There was a failure building this commit
Initial commit
2024-03-20 05:50:20 +08:00

50 lines
974 B
Bash

# 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')
url=https://github.com/pengutronix/$pkgname
license=(GPL-2.0-only)
depends=(confuse)
optdepends=(
'cramfs-tools: mkcramfs'
'genext2fs'
'qemu-headless: qemu-img'
'qemu: qemu-img'
'uboot-tools: mkimage'
'rauc'
'android-simg2img: simg2img'
'simg-tools: simg2img'
)
makedepends=(git)
source=(git+${url}.git)
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
}