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
|
2023-02-09 21:19:32 +00:00
|
|
|
pkgver=1.6.1
|
2023-02-17 06:07:47 +00:00
|
|
|
pkgrel=3
|
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="
|
2023-01-27 07:01:13 +00:00
|
|
|
boot-deploy>=0.7
|
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"
|
2023-02-17 06:07:47 +00:00
|
|
|
triggers="$pkgname.trigger=/etc/postmarketos-mkinitfs/*:/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"
|
2022-06-10 22:40:17 +00:00
|
|
|
provider_priority=999 # higher priority than Alpine's mkinitfs
|
2022-06-12 16:34:56 +00:00
|
|
|
provides="initramfs-generator"
|
2017-05-26 20:26:25 +00:00
|
|
|
|
2021-08-17 07:03:01 +00:00
|
|
|
export GOPATH="$srcdir"
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
|
|
|
|
build() {
|
2022-09-16 16:48:17 +00:00
|
|
|
unset LDFLAGS # passed to Go as linker flags, which are invalid
|
|
|
|
make
|
2021-08-17 07:03:01 +00:00
|
|
|
}
|
|
|
|
|
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"
|
|
|
|
|
2017-05-26 20:26:25 +00:00
|
|
|
mkdir -p "$pkgdir/etc/postmarketos-mkinitfs/hooks/"
|
2022-09-16 16:48:17 +00:00
|
|
|
|
|
|
|
make PREFIX=/usr DESTDIR="$pkgdir" install
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
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="
|
2023-02-09 21:19:32 +00:00
|
|
|
eb4af0fd9b5050e792c2ffb5d72e38899d19e623eda8f41e7cfeaa3d6dcae7e0342381cfc12f4969017d1e3b3b5d879614b0bbc3e4cf2d5fd01769e741bea17e postmarketos-mkinitfs-1.6.1.tar.gz
|
2022-06-12 17:25:25 +00:00
|
|
|
20f110337113e8de8999cf2a064a93fea36821d5c216bfa4ba46ec1f83825638262b92fd7be29eee0a85a54a108b7315a96cbe30da8ae4419f54c2ed53bb08c7 00-default.modules
|
2023-02-16 12:02:12 +00:00
|
|
|
2ef30df1d00edc95a8789c20b51d5a5fba29940d0809dbdd46d98023d50077c2a77ee3a767b42e879ea12db1fdb18d12128e33009527bd0d18f74b50b6d13108 init.sh
|
|
|
|
43a5240e03183db722a1d2e81b10fe8be0a1d1e6c11783e869adbf605b7886a05208296debafd0dd0b8d0b0be6dd695515114b8bd6716f82e69105c12b225571 init_functions.sh
|
2021-05-21 15:29:31 +00:00
|
|
|
"
|