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-03-13 13:04:02 -07:00
|
|
|
pkgver=2.1.1
|
2023-02-17 14:36:09 -08:00
|
|
|
pkgrel=0
|
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-01-27 08:01:13 +01:00
|
|
|
boot-deploy>=0.7
|
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-02-17 14:36:09 -08:00
|
|
|
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
|
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-03-13 13:04:02 -07:00
|
|
|
6ff8b63a0c90002de40115dd25315105321323efdf5041e380a9200fa8a9925d109e08b9575333571acb00bf4abd358d89121b86dd73e6509c0a4d6924f568aa postmarketos-mkinitfs-2.1.1.tar.gz
|
|
|
|
368175d6d934963ffb29a7be89bcd54469aca1c4c5e7bf02bb33bd2b35ec9c56dc826fe2213fba485b97456be41d7cb30551aaecf9cac6b292736c33feeaf8e0 mkinitfs-vendor-2.1.1.tar.gz
|
2021-05-21 17:29:31 +02:00
|
|
|
"
|