2020-09-12 12:30:41 +02:00
|
|
|
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
2021-08-17 00:03:01 -07:00
|
|
|
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
|
2017-05-26 22:26:25 +02:00
|
|
|
pkgname=postmarketos-mkinitfs
|
2023-10-12 23:31:18 -07:00
|
|
|
pkgver=2.2.2
|
2023-10-31 15:45:15 -07:00
|
|
|
pkgrel=2
|
2017-06-07 23:14:24 +02:00
|
|
|
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
2018-06-30 09:00:48 +02:00
|
|
|
url="https://postmarketos.org"
|
2020-09-12 12:30:41 +02:00
|
|
|
depends="
|
2023-07-29 15:45:10 +02:00
|
|
|
boot-deploy>=0.9
|
2023-02-17 14:36:09 -08:00
|
|
|
"
|
2023-03-13 13:04:02 -07:00
|
|
|
makedepends="go scdoc"
|
2020-06-11 15:40:08 +02:00
|
|
|
replaces="mkinitfs"
|
2023-10-31 15:45:15 -07:00
|
|
|
triggers="$pkgname.trigger=/usr/share/mkinitfs/*:/usr/share/kernel/*:/usr/share/mkinitfs-triggers:/usr/share/deviceinfo:/usr/libexec/pmos-tests-initramfs:/usr/lib/systemd/boot"
|
2023-02-17 14:36:09 -08:00
|
|
|
# mkinitfs-vendor-$pkgver.tar.gz: vendored Go deps, is part of the release:
|
|
|
|
# https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/releases
|
2021-08-17 00:03:01 -07:00
|
|
|
source="
|
|
|
|
https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/archive/$pkgver/postmarketos-mkinitfs-$pkgver.tar.gz
|
2023-02-17 14:36:09 -08:00
|
|
|
https://gitlab.com/api/v4/projects/postmarketOS%2Fpostmarketos-mkinitfs/packages/generic/mkinitfs-vendor-$pkgver/$pkgver/mkinitfs-vendor-$pkgver.tar.gz
|
2020-04-11 11:47:41 +02:00
|
|
|
"
|
2023-02-17 14:36:09 -08:00
|
|
|
|
2021-08-17 00:03:01 -07:00
|
|
|
install="$pkgname.post-upgrade"
|
|
|
|
arch="all"
|
2020-09-12 12:30:41 +02:00
|
|
|
license="GPL-2.0-or-later"
|
2022-06-10 15:40:17 -07:00
|
|
|
provider_priority=999 # higher priority than Alpine's mkinitfs
|
2022-06-12 18:34:56 +02:00
|
|
|
provides="initramfs-generator"
|
2023-02-17 14:36:09 -08:00
|
|
|
subpackages="$pkgname-doc"
|
2017-05-26 22:26:25 +02:00
|
|
|
|
2021-08-17 00:03:01 -07:00
|
|
|
export CGO_ENABLED=0
|
2023-02-17 14:36:09 -08:00
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
export GOPATH="$srcdir"
|
|
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
ln -s "$srcdir"/vendor "$builddir"/vendor
|
|
|
|
}
|
2021-08-17 00:03:01 -07:00
|
|
|
|
|
|
|
build() {
|
2022-09-16 09:48:17 -07:00
|
|
|
unset LDFLAGS # passed to Go as linker flags, which are invalid
|
2023-03-13 13:04:02 -07:00
|
|
|
make VERSION="$pkgver"
|
2021-08-17 00:03:01 -07:00
|
|
|
}
|
|
|
|
|
2017-05-26 22:26:25 +02:00
|
|
|
package() {
|
2022-09-16 09:48:17 -07:00
|
|
|
make PREFIX=/usr DESTDIR="$pkgdir" install
|
2017-05-26 22:26:25 +02:00
|
|
|
}
|
2020-02-05 20:32:16 +01:00
|
|
|
|
2020-04-04 14:18:13 +02:00
|
|
|
check() {
|
2021-08-17 00:03:01 -07:00
|
|
|
go test ./...
|
2020-04-04 14:18:13 +02:00
|
|
|
}
|
2021-08-17 00:03:01 -07:00
|
|
|
|
2021-05-21 17:29:31 +02:00
|
|
|
sha512sums="
|
2023-10-12 23:31:18 -07:00
|
|
|
ddbb21c1beaaaad7fe9bb653ab6013a0d5b041a2e261e1f02ae7fbf716d1a8f8bf3043904707a35a4fe484aba578f0fba860d269a946541a345b647a83cde7d9 postmarketos-mkinitfs-2.2.2.tar.gz
|
|
|
|
34ecfb29d3b0e547ba3ba3e50fa0e962c3c381cc200b12504354a9cfcc46a1b2987a69f298eedb5c39a6cdb06bc270119c991ffe1f96399e37ec8c20e90385f4 mkinitfs-vendor-2.2.2.tar.gz
|
2021-05-21 17:29:31 +02:00
|
|
|
"
|