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
|
2024-07-11 22:00:04 +00:00
|
|
|
pkgver=2.5.1
|
2024-01-26 19:26:14 +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="
|
2023-07-29 13:45:10 +00:00
|
|
|
boot-deploy>=0.9
|
2023-02-17 22:36:09 +00:00
|
|
|
"
|
2023-03-13 20:04:02 +00:00
|
|
|
makedepends="go scdoc"
|
2020-06-11 13:40:08 +00:00
|
|
|
replaces="mkinitfs"
|
2024-01-18 22:13:34 +00:00
|
|
|
|
|
|
|
triggers="$pkgname.trigger=\
|
|
|
|
/lib/firmware/*:\
|
|
|
|
/usr/lib/systemd/boot:\
|
|
|
|
/usr/libexec/pmos-tests-initramfs:\
|
|
|
|
/usr/share/deviceinfo:\
|
|
|
|
/usr/share/kernel/*:\
|
|
|
|
/usr/share/mkinitfs-triggers:\
|
|
|
|
/usr/share/mkinitfs/*\
|
|
|
|
"
|
|
|
|
|
2023-02-17 22:36:09 +00:00
|
|
|
# mkinitfs-vendor-$pkgver.tar.gz: vendored Go deps, is part of the release:
|
|
|
|
# https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/releases
|
2021-08-17 07:03:01 +00:00
|
|
|
source="
|
|
|
|
https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/archive/$pkgver/postmarketos-mkinitfs-$pkgver.tar.gz
|
2023-02-17 22:36:09 +00:00
|
|
|
https://gitlab.com/api/v4/projects/postmarketOS%2Fpostmarketos-mkinitfs/packages/generic/mkinitfs-vendor-$pkgver/$pkgver/mkinitfs-vendor-$pkgver.tar.gz
|
2020-04-11 09:47:41 +00:00
|
|
|
"
|
2023-02-17 22:36:09 +00:00
|
|
|
|
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"
|
2022-06-10 22:40:17 +00:00
|
|
|
provider_priority=999 # higher priority than Alpine's mkinitfs
|
2022-06-12 16:34:56 +00:00
|
|
|
provides="initramfs-generator"
|
2023-02-17 22:36:09 +00:00
|
|
|
subpackages="$pkgname-doc"
|
2017-05-26 20:26:25 +00:00
|
|
|
|
2023-02-17 22:36:09 +00: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 07:03:01 +00:00
|
|
|
|
|
|
|
build() {
|
2022-09-16 16:48:17 +00:00
|
|
|
unset LDFLAGS # passed to Go as linker flags, which are invalid
|
2023-03-13 20:04:02 +00:00
|
|
|
make VERSION="$pkgver"
|
2021-08-17 07:03:01 +00:00
|
|
|
}
|
|
|
|
|
2017-05-26 20:26:25 +00:00
|
|
|
package() {
|
2022-09-16 16:48:17 +00:00
|
|
|
make PREFIX=/usr DESTDIR="$pkgdir" install
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
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="
|
2024-07-11 22:00:04 +00:00
|
|
|
6f2e5c8281a8e6b340f2288b31fb102dcc98480e8bf905bf57a54a81d36a5615b194f0a56f5cd3be207784278257eb6ee3dfecaccb60c3332f4d0f45bafedaa3 postmarketos-mkinitfs-2.5.1.tar.gz
|
|
|
|
420e4bd8126f765c18b3ea48b2dc7356727958826dbe1086b753f5d46bc9b56d25ed668db8f9f4e8c9d5b1e943105850071c9c3ce442daf12eaa80516e973372 mkinitfs-vendor-2.5.1.tar.gz
|
2021-05-21 15:29:31 +00:00
|
|
|
"
|