2020-09-12 10:30:41 +00:00
|
|
|
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgname=postmarketos-mkinitfs
|
2021-04-06 17:59:14 +00:00
|
|
|
pkgver=0.32
|
2021-06-09 23:45:17 +00:00
|
|
|
pkgrel=0
|
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="
|
|
|
|
busybox-extras
|
|
|
|
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
|
|
|
kmod
|
|
|
|
lddtree
|
|
|
|
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
|
2020-09-12 10:30:41 +00:00
|
|
|
xz
|
|
|
|
"
|
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"
|
2020-04-04 12:18:13 +00:00
|
|
|
source="00-default.modules
|
|
|
|
init.sh.in
|
2020-04-11 09:47:41 +00:00
|
|
|
init_functions.sh
|
|
|
|
mkinitfs.sh
|
|
|
|
mkinitfs_functions.sh
|
2020-04-04 12:18:13 +00:00
|
|
|
mkinitfs_test.sh
|
2020-04-11 09:47:41 +00:00
|
|
|
"
|
2017-05-26 20:26:25 +00:00
|
|
|
arch="noarch"
|
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"
|
|
|
|
|
|
|
|
package() {
|
2020-04-11 09:47:41 +00:00
|
|
|
for file in init.sh.in init_functions.sh mkinitfs_functions.sh; do
|
2017-05-26 20:26:25 +00:00
|
|
|
install -Dm644 "$srcdir/$file" \
|
|
|
|
"$pkgdir/usr/share/postmarketos-mkinitfs/$file"
|
|
|
|
done
|
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
|
|
|
install -Dm755 "$srcdir/mkinitfs.sh" \
|
|
|
|
"$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() {
|
|
|
|
/bin/busybox sh ./mkinitfs_test.sh
|
|
|
|
}
|
2021-05-21 15:29:31 +00:00
|
|
|
sha512sums="
|
|
|
|
4717bf24bd13fd4d90f3ab000ab43f7d61529515de224ebc86458ae709ebe0b5065655457e34f5952126bac6ab45143a91cddb09a8ad2d0a55c5cecd564a0135 00-default.modules
|
2021-08-05 21:02:21 +00:00
|
|
|
4d718fca3b6a8c2d362003e7d57f9fa29510c05c27b372d21b8278fe76b2096ae098aa9f9a266a029f82956d165fd764e406ddaf36cec2e4f3bd30c6022d07a7 init.sh.in
|
2021-04-06 17:59:14 +00:00
|
|
|
563dfbd8e1ff1d3f42cd8f9615144fde83d0e1107fa1d6751eb7e049628cded12c0f1762d4ce498f741802b5f8449ef7cf1959fec22ea975fefeaa8050c171ec init_functions.sh
|
2021-08-05 21:02:21 +00:00
|
|
|
5590087d67cf8cae0e4f2b9a0d3f055a01282ace53abe586a0117a9701287cf60a88230ba5817e77886b9496098139c025c6221c4b7404e36faac7df63adc1ee mkinitfs.sh
|
|
|
|
879223b6b608f3b26993c3536b4e6b37728f774d6e4da891ae87ef26e38603a15b09918b69963c4f65aa4551b721815fd3578a1ec598b7b9d418aa677520d55f mkinitfs_functions.sh
|
2021-05-21 15:29:31 +00:00
|
|
|
c7a3c33daeb12b33ac72207191941c4d634f15c22958273b52af381a70ebaba1d3a9299483f0c447d9e66c560151fe7b9588bb4bbef2c8914f83185984ee4622 mkinitfs_test.sh
|
|
|
|
"
|