# Maintainer: Oliver Smith # Co-Maintainer: Clayton Craft pkgname=postmarketos-mkinitfs pkgver=1.3 pkgrel=0 pkgdesc="Tool to generate initramfs images for postmarketOS" url="https://postmarketos.org" depends=" boot-deploy busybox-extras 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" provides="mkinitfs=0.0.1" export GOPATH="$srcdir" export CGO_ENABLED=0 build() { # "-s -w" build a stripped binary go build -v -ldflags="-s -w" } 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" install -Dm755 postmarketos-mkinitfs \ "$pkgdir/sbin/postmarketos-mkinitfs" ln -s /sbin/postmarketos-mkinitfs \ "$pkgdir/sbin/mkinitfs" mkdir -p "$pkgdir/etc/postmarketos-mkinitfs/hooks/" } check() { go test ./... } sha512sums=" 3495c72ad5a8b1287c4a696a2f9f29b465faafa2768f6336d158aaeb577e352aaa1fc5ddcff35c70de460828094cbfa5e06d4b905565228c5706c151f54a09a8 postmarketos-mkinitfs-1.3.tar.gz 950ac042f19055979cb53b39be93866c88aba0acd5a49cd768522505991e2bd2851735677e777caa6c8973e006318582ddd975214eccc5c35c2c1d649af6d71e 00-default.modules 0c6d2c749952ff027f1c435a7a3b2861fb632b81c16b6d69a92b47457da4af8cb80e50168b93f92b316377c8c1f5243029fca22ac49fef0940eb5ad6c3dff6ec init.sh 0f631fb08f44b3aaaf44649c164040a6effda2a921c4bfc6e1b55e265ce4395947a8620e669902d18e62f7eabae0e9ef2b88d2d985d6714d27db02eb8b412cc2 init_functions.sh "