9ea2e7e828
[ci:ignore-count] [ci:skip-build]
62 lines
2 KiB
Text
62 lines
2 KiB
Text
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
|
pkgname=postmarketos-mkinitfs
|
|
pkgver=0.24
|
|
pkgrel=0
|
|
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
|
url="https://postmarketos.org"
|
|
depends="
|
|
busybox-extras
|
|
bzip2
|
|
charging-sdl
|
|
multipath-tools
|
|
cryptsetup
|
|
device-mapper
|
|
e2fsprogs
|
|
e2fsprogs-extra
|
|
f2fs-tools
|
|
kmod
|
|
lddtree
|
|
lz4
|
|
osk-sdl
|
|
parted
|
|
triggerhappy
|
|
xz
|
|
"
|
|
replaces="mkinitfs"
|
|
triggers="$pkgname.trigger=/etc/postmarketos-mkinitfs/hooks:/usr/share/kernel/*:/usr/share/postmarketos-mkinitfs-triggers"
|
|
source="00-default.modules
|
|
init.sh.in
|
|
init_functions.sh
|
|
mkinitfs.sh
|
|
mkinitfs_functions.sh
|
|
mkinitfs_test.sh
|
|
"
|
|
arch="noarch"
|
|
license="GPL-2.0-or-later"
|
|
provides="mkinitfs=0.0.1"
|
|
|
|
package() {
|
|
for file in init.sh.in init_functions.sh mkinitfs_functions.sh; do
|
|
install -Dm644 "$srcdir/$file" \
|
|
"$pkgdir/usr/share/postmarketos-mkinitfs/$file"
|
|
done
|
|
|
|
install -Dm644 "$srcdir/00-default.modules" \
|
|
"$pkgdir/etc/postmarketos-mkinitfs/modules/00-default.modules"
|
|
|
|
install -Dm755 "$srcdir/mkinitfs.sh" \
|
|
"$pkgdir/sbin/mkinitfs"
|
|
|
|
mkdir -p "$pkgdir/etc/postmarketos-mkinitfs/hooks/"
|
|
}
|
|
|
|
check() {
|
|
/bin/busybox sh ./mkinitfs_test.sh
|
|
}
|
|
|
|
sha512sums="4717bf24bd13fd4d90f3ab000ab43f7d61529515de224ebc86458ae709ebe0b5065655457e34f5952126bac6ab45143a91cddb09a8ad2d0a55c5cecd564a0135 00-default.modules
|
|
bafd06286594102b8b3b126c3ae0a77a97f004ab804f03426154310c5107a1acaf3636bdba92626333adfe4fb0df32ff42c6d8d9e7adf35f6da620c6e14407a1 init.sh.in
|
|
b43f5ab4885d46cc0d259ef0ab2e51bfa50d64038553dcc4df9d14e18e04b50b0b21cde94e3f164dcac0b1d70a617282e8d3990aec04af4b46165392357f5848 init_functions.sh
|
|
4f74995c52b3fd18ef77347dbbca4b3575d23fd339b62a257c1c4b45a16feb5a95f391d6189f62e94ac00d8da3077d192c678554a5f9b8190e34bf3fa6c86e95 mkinitfs.sh
|
|
ee1af97c53d53229eead55a580fad704891c0dd7b678dd3d56822c5a6d9e983559cf8a271abe4f5c144116e5ba507c182aa02a478e3db82d1b689facc0ac6d6b mkinitfs_functions.sh
|
|
c7a3c33daeb12b33ac72207191941c4d634f15c22958273b52af381a70ebaba1d3a9299483f0c447d9e66c560151fe7b9588bb4bbef2c8914f83185984ee4622 mkinitfs_test.sh"
|