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-06-12 17:25:25 +00:00
|
|
|
pkgrel=7
|
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"
|
2022-06-10 22:40:17 +00:00
|
|
|
provider_priority=999 # higher priority than Alpine's mkinitfs
|
|
|
|
provides="mkinitfs=3.6.1 initramfs-generator=3.6.1"
|
2017-05-26 20:26:25 +00:00
|
|
|
|
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
|
2022-06-12 17:25:25 +00:00
|
|
|
20f110337113e8de8999cf2a064a93fea36821d5c216bfa4ba46ec1f83825638262b92fd7be29eee0a85a54a108b7315a96cbe30da8ae4419f54c2ed53bb08c7 00-default.modules
|
2022-05-28 10:57:34 +00:00
|
|
|
ccdceaa710d97d6f57d8d66bfcbec448486d08083341712303f62123039f729229b88528308e411a308a2b90b81b60de89fe91143a6facbb11cbc9b4055eeaec init.sh
|
|
|
|
b6f433aa5a758e58ae4745f2b11f691f4d3ffbef35d9002bc2721ba797b3e7653e9449b6a1b503c47d725f644e0d7c0e5426f8a575f4cc437c21cfc6e2f4cdf3 init_functions.sh
|
2021-05-21 15:29:31 +00:00
|
|
|
"
|