2020-09-12 10:30:41 +00:00
|
|
|
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
2021-08-17 07:03:01 +00:00
|
|
|
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgname=postmarketos-mkinitfs
|
2022-01-02 16:51:52 +00:00
|
|
|
pkgver=1.4.1
|
2022-01-22 18:15:41 +00:00
|
|
|
pkgrel=1
|
2017-06-07 21:14:24 +00:00
|
|
|
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2020-09-12 10:30:41 +00:00
|
|
|
depends="
|
2021-08-17 07:03:01 +00:00
|
|
|
boot-deploy
|
2020-09-12 10:30:41 +00:00
|
|
|
busybox-extras
|
2022-01-02 16:51:52 +00:00
|
|
|
btrfs-progs
|
2020-09-12 10:30:41 +00:00
|
|
|
bzip2
|
|
|
|
cryptsetup
|
|
|
|
device-mapper
|
|
|
|
e2fsprogs
|
|
|
|
e2fsprogs-extra
|
2021-04-08 17:58:22 +00:00
|
|
|
f2fs-tools
|
2020-09-12 10:30:41 +00:00
|
|
|
lz4
|
2021-06-09 23:45:17 +00:00
|
|
|
multipath-tools
|
2020-09-12 10:30:41 +00:00
|
|
|
parted
|
2021-06-09 23:45:17 +00:00
|
|
|
postmarketos-fde-unlocker
|
2021-10-04 03:41:45 +00:00
|
|
|
unudhcpd
|
2020-09-12 10:30:41 +00:00
|
|
|
xz
|
|
|
|
"
|
2021-08-17 07:03:01 +00:00
|
|
|
makedepends="go"
|
2020-06-11 13:40:08 +00:00
|
|
|
replaces="mkinitfs"
|
2020-09-12 10:30:41 +00:00
|
|
|
triggers="$pkgname.trigger=/etc/postmarketos-mkinitfs/hooks:/usr/share/kernel/*:/usr/share/postmarketos-mkinitfs-triggers"
|
2021-08-17 07:03:01 +00:00
|
|
|
source="
|
|
|
|
https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/archive/$pkgver/postmarketos-mkinitfs-$pkgver.tar.gz
|
|
|
|
00-default.modules
|
|
|
|
init.sh
|
2020-04-11 09:47:41 +00:00
|
|
|
init_functions.sh
|
|
|
|
"
|
2021-08-17 07:03:01 +00:00
|
|
|
install="$pkgname.post-upgrade"
|
|
|
|
arch="all"
|
2020-09-12 10:30:41 +00:00
|
|
|
license="GPL-2.0-or-later"
|
2017-05-26 20:26:25 +00:00
|
|
|
provides="mkinitfs=0.0.1"
|
|
|
|
|
2021-08-17 07:03:01 +00:00
|
|
|
export GOPATH="$srcdir"
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
|
|
|
|
build() {
|
|
|
|
# "-s -w" build a stripped binary
|
|
|
|
go build -v -ldflags="-s -w"
|
|
|
|
}
|
|
|
|
|
2017-05-26 20:26:25 +00:00
|
|
|
package() {
|
2021-08-17 07:03:01 +00:00
|
|
|
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"
|
2020-04-11 09:47:41 +00:00
|
|
|
|
2020-04-04 12:18:13 +00:00
|
|
|
install -Dm644 "$srcdir/00-default.modules" \
|
|
|
|
"$pkgdir/etc/postmarketos-mkinitfs/modules/00-default.modules"
|
|
|
|
|
2021-08-17 07:03:01 +00:00
|
|
|
install -Dm755 postmarketos-mkinitfs \
|
|
|
|
"$pkgdir/sbin/postmarketos-mkinitfs"
|
|
|
|
|
|
|
|
ln -s /sbin/postmarketos-mkinitfs \
|
2017-05-26 20:26:25 +00:00
|
|
|
"$pkgdir/sbin/mkinitfs"
|
2020-04-11 09:47:41 +00:00
|
|
|
|
2017-05-26 20:26:25 +00:00
|
|
|
mkdir -p "$pkgdir/etc/postmarketos-mkinitfs/hooks/"
|
|
|
|
}
|
2020-02-05 19:32:16 +00:00
|
|
|
|
2020-04-04 12:18:13 +00:00
|
|
|
check() {
|
2021-08-17 07:03:01 +00:00
|
|
|
go test ./...
|
2020-04-04 12:18:13 +00:00
|
|
|
}
|
2021-08-17 07:03:01 +00:00
|
|
|
|
2021-05-21 15:29:31 +00:00
|
|
|
sha512sums="
|
2022-01-02 16:51:52 +00:00
|
|
|
f827acb0a10c0e5c1631f1b712e91fde7eb4ade0f1174eb2ef1754018bf4518ea1ad3229fd335c25fb0c6fe46ae20890f5cf43e58c8143ae17b5ab9bb36f0199 postmarketos-mkinitfs-1.4.1.tar.gz
|
|
|
|
08a3e79c6fa7d3839d43515b8da7817cb36f4ab014552fd0164957c232bb16fde337e57c47c9734d396a5fca3328fbf49ebabe4728c6071c80b04dad14886bba 00-default.modules
|
2021-10-04 03:41:45 +00:00
|
|
|
0c6d2c749952ff027f1c435a7a3b2861fb632b81c16b6d69a92b47457da4af8cb80e50168b93f92b316377c8c1f5243029fca22ac49fef0940eb5ad6c3dff6ec init.sh
|
2022-01-22 18:15:41 +00:00
|
|
|
ddf1d545413cbf4bdd910c8bbd457ce46b1d0afe4c32ec204f3fee933386b08bc27af9f2907b0734b53d929b38352c5c8744d5828d60ffbc68f2a724b854d267 init_functions.sh
|
2021-05-21 15:29:31 +00:00
|
|
|
"
|