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-02-27 16:28:56 +00:00
|
|
|
pkgver=0.24
|
2021-04-27 14:06:44 +00:00
|
|
|
pkgrel=2
|
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
|
2020-11-17 14:49:17 +00:00
|
|
|
multipath-tools
|
2020-09-12 10:30:41 +00:00
|
|
|
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
|
|
|
|
osk-sdl
|
|
|
|
parted
|
|
|
|
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-04-08 17:58:22 +00:00
|
|
|
sha512sums="4717bf24bd13fd4d90f3ab000ab43f7d61529515de224ebc86458ae709ebe0b5065655457e34f5952126bac6ab45143a91cddb09a8ad2d0a55c5cecd564a0135 00-default.modules
|
2021-04-12 16:46:11 +00:00
|
|
|
1a267dd958609263a4f24657f602ac0e4e0c724bf1284adec85e82d05c9b07553085edea5a56f7fa09d1652af232c72d4d39a06858c2a580ff830577b5f37d67 init.sh.in
|
|
|
|
34d7b0b527a75213b0cbd93305cbe7307da6f447ae9066b7627aa78fb6b88a025bbf4d5d0125f9ec8f4aad3a3c7ecdedf8b05cb4b44cd7e41f5ccef6d3c77c4a init_functions.sh
|
2021-04-11 16:49:36 +00:00
|
|
|
4f74995c52b3fd18ef77347dbbca4b3575d23fd339b62a257c1c4b45a16feb5a95f391d6189f62e94ac00d8da3077d192c678554a5f9b8190e34bf3fa6c86e95 mkinitfs.sh
|
2021-04-27 14:06:44 +00:00
|
|
|
93dfd3516870d388d5d124c162c43a327aa716eeabbc8cbed3378711e9347ef76919c09dac051f833230caff7607008d4c38022cc1d910c7392012e22818e890 mkinitfs_functions.sh
|
2020-04-04 12:18:13 +00:00
|
|
|
c7a3c33daeb12b33ac72207191941c4d634f15c22958273b52af381a70ebaba1d3a9299483f0c447d9e66c560151fe7b9588bb4bbef2c8914f83185984ee4622 mkinitfs_test.sh"
|