summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatol Pomozov2021-02-09 21:06:18 -0800
committerAnatol Pomozov2021-02-09 21:06:18 -0800
commit251b6a8aa8570d3fd8ba66c3a126b510ba3972ad (patch)
tree6a3988d9f68b80c77c557f8bc48e2b1f30d5b88d
parent49cf8ef73d213c8dce20d82ef2bc037cc0c12cf1 (diff)
downloadaur-251b6a8aa8570d3fd8ba66c3a126b510ba3972ad.tar.gz
Add conflicts with [extra] booster package
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD20
2 files changed, 18 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fdae7c773ba..be986229dec 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = booster-git
pkgdesc = Fast and secure initramfs generator
- pkgver = 0.1.r42.g4eced3a
+ pkgver = 0.2.r0.g47e4e6b
pkgrel = 1
url = http://github.com/anatol/booster
arch = x86_64
@@ -9,7 +9,11 @@ pkgbase = booster-git
makedepends = go
depends = bash
optdepends = busybox: to enable emergency shell at the boot time
+ provides = booster
provides = initramfs
+ conflicts = booster
+ replaces = booster
+ backup = etc/booster.yaml
source = git+https://github.com/anatol/booster
sha512sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 6afd22d4288..c10583d8223 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Anatol Pomozov
pkgname=booster-git
-pkgver=0.1.r42.g4eced3a
+pkgver=0.2.r0.g47e4e6b
pkgrel=1
pkgdesc='Fast and secure initramfs generator'
arch=(x86_64)
@@ -9,9 +9,12 @@ url='http://github.com/anatol/booster'
license=(MIT)
depends=(bash)
makedepends=(git go)
-#checkdepends=(qemu-headless linux)
+#checkdepends=(qemu-headless linux tang)
optdepends=('busybox: to enable emergency shell at the boot time')
-provides=(initramfs)
+backup=(etc/booster.yaml)
+provides=(booster initramfs)
+conflicts=(booster)
+replaces=(booster)
source=(git+https://github.com/anatol/booster)
sha512sums=('SKIP')
@@ -21,7 +24,9 @@ pkgver() {
}
build() {
- cd $srcdir/booster/generator
+ cd booster
+
+ cd generator
CGO_CPPFLAGS="${CPPFLAGS}" CGO_CFLAGS="${CFLAGS}" CGO_CXXFLAGS="${CXXFLAGS}" CGO_LDFLAGS="${LDFLAGS}" \
go build -trimpath \
-buildmode=pie \
@@ -29,13 +34,14 @@ build() {
-modcacherw \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\""
- cd $srcdir/booster/init
+ cd ../init
CGO_ENABLED=0 go build -trimpath -mod=readonly -modcacherw
}
check() {
- cd $srcdir/booster/tests
- # go test -v this requires access to KVM that is not available in Arch chroot env
+ cd booster/tests
+ # arch chroot does not allow access to KVM
+ # TEST_DISABLE_KVM=1 go test -v # integration tests require a lot of time and space to build 10G images
}
package() {