f403330733
Bugfix release, nothing major though. Full changelog: https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/tags/2.1.1 Note: git was dropped as a makedepends because it's not actually needed... I forgot that I could just set VERSION at build time. Oops. [ci:skip-build] already built successfully in CI
55 lines
1.8 KiB
Text
55 lines
1.8 KiB
Text
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
|
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
pkgname=postmarketos-mkinitfs
|
|
pkgver=2.1.1
|
|
pkgrel=0
|
|
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
|
url="https://postmarketos.org"
|
|
depends="
|
|
boot-deploy>=0.7
|
|
"
|
|
makedepends="go scdoc"
|
|
replaces="mkinitfs"
|
|
triggers="$pkgname.trigger=/usr/share/mkinitfs/*:/usr/share/kernel/*:/usr/share/mkinitfs-triggers"
|
|
# 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 CGO_ENABLED=0
|
|
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="
|
|
6ff8b63a0c90002de40115dd25315105321323efdf5041e380a9200fa8a9925d109e08b9575333571acb00bf4abd358d89121b86dd73e6509c0a4d6924f568aa postmarketos-mkinitfs-2.1.1.tar.gz
|
|
368175d6d934963ffb29a7be89bcd54469aca1c4c5e7bf02bb33bd2b35ec9c56dc826fe2213fba485b97456be41d7cb30551aaecf9cac6b292736c33feeaf8e0 mkinitfs-vendor-2.1.1.tar.gz
|
|
"
|