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
|
2020-09-07 21:43:58 +00:00
|
|
|
pkgver=0.15.0
|
2020-10-06 12:18:13 +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
|
|
|
|
charging-sdl
|
|
|
|
cmd:kpartx
|
|
|
|
cryptsetup
|
|
|
|
device-mapper
|
|
|
|
e2fsprogs
|
|
|
|
e2fsprogs-extra
|
|
|
|
kmod
|
|
|
|
lddtree
|
|
|
|
lz4
|
|
|
|
osk-sdl
|
|
|
|
parted
|
|
|
|
triggerhappy
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="5037cb7285bb7c0c40ca9e6df332d882ef9a8b379756c785f921e062dab1b7e7f3139d00897f69323a916d709ced4297fea8cbd3a13ebae575b873ec9e2cbfae 00-default.modules
|
2020-07-20 09:40:45 +00:00
|
|
|
7fc6ba96419628850984df3322b73bcf655cba03fe3e97ec7425e66e90f4b2a4de106b5cb2e3d46785a92557334288011334104285e2050c7a8e823b8fa5668c init.sh.in
|
2020-09-07 21:43:58 +00:00
|
|
|
ce30c06d36c425668fd84a192b1c03162fca937b0c1d170247380309309bf486021a539cb70b2ebe96cb1a7ae4090dbdf55401970ee0f1140cb327b7e74ddd30 init_functions.sh
|
2020-08-05 17:10:49 +00:00
|
|
|
dfc01ee0547ea88b7aa45a005e842b636e9e19bbf1705f3dad53a66d57af7c5c513c092b5469a06d9b00322e56a4d25f1b47e4c5324aafa99f5291679968d1f1 mkinitfs.sh
|
2020-09-07 21:43:58 +00:00
|
|
|
874b1bba86085a4b7707b3d1ac6534e2027b5783111b2f9c66c2595ada95113a95272c1be9d234b7957c785978de0c5352b4abd70819871caed9efcfbf703dac mkinitfs_functions.sh
|
2020-04-04 12:18:13 +00:00
|
|
|
c7a3c33daeb12b33ac72207191941c4d634f15c22958273b52af381a70ebaba1d3a9299483f0c447d9e66c560151fe7b9588bb4bbef2c8914f83185984ee4622 mkinitfs_test.sh"
|