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
|
2021-10-04 01:16:42 +00:00
|
|
|
pkgver=1.1.2
|
2021-12-26 13:38:58 +00:00
|
|
|
pkgrel=4
|
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
|
|
|
|
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
|
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"
|
2017-05-26 20:26:25 +00:00
|
|
|
provides="mkinitfs=0.0.1"
|
|
|
|
|
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="
|
2021-10-04 01:16:42 +00:00
|
|
|
67341444c21fc884751ee12fec4069132184d6346fe6dee3f90989ed1417322336c3f135a5099dce5cecce64ad1f2a5e7ce254e5fdc772e20a150facb09f3763 postmarketos-mkinitfs-1.1.2.tar.gz
|
2021-10-10 20:08:47 +00:00
|
|
|
950ac042f19055979cb53b39be93866c88aba0acd5a49cd768522505991e2bd2851735677e777caa6c8973e006318582ddd975214eccc5c35c2c1d649af6d71e 00-default.modules
|
2021-08-17 07:03:01 +00:00
|
|
|
40033b421e79999c85bd72e1353fe6745a87fcbf9f6a5b8180e832c7f340da7d4e33d056f557ae95a9924f5d186a6e728f3ed53c0922cdac4c39513fdc3e3a82 init.sh
|
2021-11-05 14:53:40 +00:00
|
|
|
ac097c23ea8807aeac9af6ee1ced4fb41f2e108d9ebed61062decec02a2f0cece8bf1d5f45e5d52928ccead09f0b44190f6b1008018b6d845ba1b5d26679d82f init_functions.sh
|
2021-05-21 15:29:31 +00:00
|
|
|
"
|