2020-09-12 12:30:41 +02:00
|
|
|
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
2021-08-17 00:03:01 -07:00
|
|
|
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
|
2017-05-26 22:26:25 +02:00
|
|
|
pkgname=postmarketos-mkinitfs
|
2023-02-09 13:19:32 -08:00
|
|
|
pkgver=1.6.1
|
2022-01-24 00:33:28 +00:00
|
|
|
pkgrel=1
|
2017-06-07 23:14:24 +02:00
|
|
|
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
2018-06-30 09:00:48 +02:00
|
|
|
url="https://postmarketos.org"
|
2020-09-12 12:30:41 +02:00
|
|
|
depends="
|
2023-01-27 08:01:13 +01:00
|
|
|
boot-deploy>=0.7
|
2020-09-12 12:30:41 +02:00
|
|
|
busybox-extras
|
2022-01-02 17:51:52 +01:00
|
|
|
btrfs-progs
|
2020-09-12 12:30:41 +02:00
|
|
|
bzip2
|
|
|
|
cryptsetup
|
|
|
|
device-mapper
|
|
|
|
e2fsprogs
|
|
|
|
e2fsprogs-extra
|
2021-04-08 13:58:22 -04:00
|
|
|
f2fs-tools
|
2020-09-12 12:30:41 +02:00
|
|
|
lz4
|
2021-06-09 16:45:17 -07:00
|
|
|
multipath-tools
|
2020-09-12 12:30:41 +02:00
|
|
|
parted
|
2021-06-09 16:45:17 -07:00
|
|
|
postmarketos-fde-unlocker
|
2021-10-03 20:41:45 -07:00
|
|
|
unudhcpd
|
2020-09-12 12:30:41 +02:00
|
|
|
xz
|
|
|
|
"
|
2021-08-17 00:03:01 -07:00
|
|
|
makedepends="go"
|
2020-06-11 15:40:08 +02:00
|
|
|
replaces="mkinitfs"
|
2020-09-12 12:30:41 +02:00
|
|
|
triggers="$pkgname.trigger=/etc/postmarketos-mkinitfs/hooks:/usr/share/kernel/*:/usr/share/postmarketos-mkinitfs-triggers"
|
2021-08-17 00:03:01 -07:00
|
|
|
source="
|
|
|
|
https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/archive/$pkgver/postmarketos-mkinitfs-$pkgver.tar.gz
|
|
|
|
00-default.modules
|
|
|
|
init.sh
|
2020-04-11 11:47:41 +02:00
|
|
|
init_functions.sh
|
|
|
|
"
|
2021-08-17 00:03:01 -07:00
|
|
|
install="$pkgname.post-upgrade"
|
|
|
|
arch="all"
|
2020-09-12 12:30:41 +02:00
|
|
|
license="GPL-2.0-or-later"
|
2022-06-10 15:40:17 -07:00
|
|
|
provider_priority=999 # higher priority than Alpine's mkinitfs
|
2022-06-12 18:34:56 +02:00
|
|
|
provides="initramfs-generator"
|
2017-05-26 22:26:25 +02:00
|
|
|
|
2021-08-17 00:03:01 -07:00
|
|
|
export GOPATH="$srcdir"
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
|
|
|
|
build() {
|
2022-09-16 09:48:17 -07:00
|
|
|
unset LDFLAGS # passed to Go as linker flags, which are invalid
|
|
|
|
make
|
2021-08-17 00:03:01 -07:00
|
|
|
}
|
|
|
|
|
2017-05-26 22:26:25 +02:00
|
|
|
package() {
|
2021-08-17 00:03:01 -07: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 11:47:41 +02:00
|
|
|
|
2020-04-04 14:18:13 +02:00
|
|
|
install -Dm644 "$srcdir/00-default.modules" \
|
|
|
|
"$pkgdir/etc/postmarketos-mkinitfs/modules/00-default.modules"
|
|
|
|
|
2017-05-26 22:26:25 +02:00
|
|
|
mkdir -p "$pkgdir/etc/postmarketos-mkinitfs/hooks/"
|
2022-09-16 09:48:17 -07:00
|
|
|
|
|
|
|
make PREFIX=/usr DESTDIR="$pkgdir" install
|
2017-05-26 22:26:25 +02:00
|
|
|
}
|
2020-02-05 20:32:16 +01:00
|
|
|
|
2020-04-04 14:18:13 +02:00
|
|
|
check() {
|
2021-08-17 00:03:01 -07:00
|
|
|
go test ./...
|
2020-04-04 14:18:13 +02:00
|
|
|
}
|
2021-08-17 00:03:01 -07:00
|
|
|
|
2021-05-21 17:29:31 +02:00
|
|
|
sha512sums="
|
2023-02-09 13:19:32 -08:00
|
|
|
eb4af0fd9b5050e792c2ffb5d72e38899d19e623eda8f41e7cfeaa3d6dcae7e0342381cfc12f4969017d1e3b3b5d879614b0bbc3e4cf2d5fd01769e741bea17e postmarketos-mkinitfs-1.6.1.tar.gz
|
2022-06-12 10:25:25 -07:00
|
|
|
20f110337113e8de8999cf2a064a93fea36821d5c216bfa4ba46ec1f83825638262b92fd7be29eee0a85a54a108b7315a96cbe30da8ae4419f54c2ed53bb08c7 00-default.modules
|
2022-01-24 00:33:28 +00:00
|
|
|
5f8e4acb19abee32b481f69b50be96ab06b1fea1b27448b9d08dfa13f0868d7808139b39c88d64bd35a3d6b2727e7b71797dbf0e99f6a92157e2755c89a34da4 init.sh
|
|
|
|
4c18c7d1078c0fd37623e53d0f6d5660df7d6e53f2340c2b24cf62129cf7c4c5a90856ed6d0254498c927a7e41431e9344c4a6eae236f986e9468f45a7c7f281 init_functions.sh
|
2021-05-21 17:29:31 +02:00
|
|
|
"
|