# Maintainer: Oliver Smith # Co-Maintainer: Clayton Craft pkgname=postmarketos-mkinitfs pkgver=1.6 pkgrel=1 pkgdesc="Tool to generate initramfs images for postmarketOS" url="https://postmarketos.org" depends=" boot-deploy>=0.7 busybox-extras btrfs-progs bzip2 cryptsetup device-mapper e2fsprogs e2fsprogs-extra f2fs-tools lz4 multipath-tools parted postmarketos-fde-unlocker unudhcpd xz " makedepends="go" replaces="mkinitfs" triggers="$pkgname.trigger=/etc/postmarketos-mkinitfs/hooks:/usr/share/kernel/*:/usr/share/postmarketos-mkinitfs-triggers" source=" https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/archive/$pkgver/postmarketos-mkinitfs-$pkgver.tar.gz 00-default.modules init.sh init_functions.sh " install="$pkgname.post-upgrade" arch="all" license="GPL-2.0-or-later" provider_priority=999 # higher priority than Alpine's mkinitfs provides="initramfs-generator" export GOPATH="$srcdir" export CGO_ENABLED=0 build() { unset LDFLAGS # passed to Go as linker flags, which are invalid make } package() { install -Dm644 "$srcdir/init_functions.sh" \ "$pkgdir/usr/share/postmarketos-mkinitfs/init_functions.sh" install -Dm755 "$srcdir/init.sh" \ "$pkgdir/usr/share/postmarketos-mkinitfs/init.sh" install -Dm644 "$srcdir/00-default.modules" \ "$pkgdir/etc/postmarketos-mkinitfs/modules/00-default.modules" mkdir -p "$pkgdir/etc/postmarketos-mkinitfs/hooks/" make PREFIX=/usr DESTDIR="$pkgdir" install } check() { go test ./... } sha512sums=" ff5548fa4a6e2cf6326a43c23d13f36c9abb40d131e61f5b8ed544260e0b319d362a68878fc38abd011bc036e5e669a13c57a39479f6672721b7bf70c20bad2e postmarketos-mkinitfs-1.6.tar.gz 20f110337113e8de8999cf2a064a93fea36821d5c216bfa4ba46ec1f83825638262b92fd7be29eee0a85a54a108b7315a96cbe30da8ae4419f54c2ed53bb08c7 00-default.modules f9a3ebf7f116df5f50c047d99d9353ea97965522d6d80a039d4f79316c5152f49499fab654f8b12b54dd247f1497957e5c3d957292b09c3d449f3d1fa7d43d9a init.sh 57ad4267c97153c9ca606c5422de887cc62ec44faafacaf24923fa524068e6103a2de9ad50b70320f75e105e8b82ab65cde7f5efac3c27f0155b3086bc4f3431 init_functions.sh "