cbe2f4f7f6
Fixes: - ignore leading/trailing whitespace in files (MR 55) - fix spelling typo in manpage - add missing /usr/sbin symlinks for UsrMerge (MR 53) [ci:skip-build]: already built successfully in CI
64 lines
1.9 KiB
Text
64 lines
1.9 KiB
Text
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
|
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
pkgname=postmarketos-mkinitfs
|
|
pkgver=2.5.1
|
|
pkgrel=0
|
|
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
|
url="https://postmarketos.org"
|
|
depends="
|
|
boot-deploy>=0.9
|
|
"
|
|
makedepends="go scdoc"
|
|
replaces="mkinitfs"
|
|
|
|
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/*\
|
|
"
|
|
|
|
# mkinitfs-vendor-$pkgver.tar.gz: vendored Go deps, is part of the release:
|
|
# https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/releases
|
|
source="
|
|
https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/archive/$pkgver/postmarketos-mkinitfs-$pkgver.tar.gz
|
|
https://gitlab.com/api/v4/projects/postmarketOS%2Fpostmarketos-mkinitfs/packages/generic/mkinitfs-vendor-$pkgver/$pkgver/mkinitfs-vendor-$pkgver.tar.gz
|
|
"
|
|
|
|
install="$pkgname.post-upgrade"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
provider_priority=999 # higher priority than Alpine's mkinitfs
|
|
provides="initramfs-generator"
|
|
subpackages="$pkgname-doc"
|
|
|
|
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
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS # passed to Go as linker flags, which are invalid
|
|
make VERSION="$pkgver"
|
|
}
|
|
|
|
package() {
|
|
make PREFIX=/usr DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
sha512sums="
|
|
6f2e5c8281a8e6b340f2288b31fb102dcc98480e8bf905bf57a54a81d36a5615b194f0a56f5cd3be207784278257eb6ee3dfecaccb60c3332f4d0f45bafedaa3 postmarketos-mkinitfs-2.5.1.tar.gz
|
|
420e4bd8126f765c18b3ea48b2dc7356727958826dbe1086b753f5d46bc9b56d25ed668db8f9f4e8c9d5b1e943105850071c9c3ce442daf12eaa80516e973372 mkinitfs-vendor-2.5.1.tar.gz
|
|
"
|