diff options
author | Anatol Pomozov | 2021-02-09 21:06:18 -0800 |
---|---|---|
committer | Anatol Pomozov | 2021-02-09 21:06:18 -0800 |
commit | 251b6a8aa8570d3fd8ba66c3a126b510ba3972ad (patch) | |
tree | 6a3988d9f68b80c77c557f8bc48e2b1f30d5b88d /PKGBUILD | |
parent | 49cf8ef73d213c8dce20d82ef2bc037cc0c12cf1 (diff) | |
download | aur-251b6a8aa8570d3fd8ba66c3a126b510ba3972ad.tar.gz |
Add conflicts with [extra] booster package
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -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() { |