[arch-commits] Commit in booster/trunk (PKGBUILD)
Anatol Pomozov
anatolik at archlinux.org
Thu Apr 1 17:40:27 UTC 2021
Date: Thursday, April 1, 2021 @ 17:40:26
Author: anatolik
Revision: 411392
upgpkg: booster 0.4-1
Modified:
booster/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-04-01 17:03:04 UTC (rev 411391)
+++ PKGBUILD 2021-04-01 17:40:26 UTC (rev 411392)
@@ -1,7 +1,7 @@
# Maintainer: Anatol Pomozov
pkgname=booster
-pkgver=0.3
+pkgver=0.4
pkgrel=1
pkgdesc='Fast and secure initramfs generator'
arch=(x86_64)
@@ -8,13 +8,13 @@
url='https://github.com/anatol/booster'
license=(MIT)
depends=(bash)
-makedepends=(go)
+makedepends=(go ruby-ronn-ng)
#checkdepends=(qemu-headless linux tang)
optdepends=('busybox: to enable emergency shell at the boot time')
backup=(etc/booster.yaml)
provides=(initramfs)
source=(booster-$pkgver.zip::https://github.com/anatol/booster/archive/$pkgver.zip)
-sha512sums=('b1d09c5fd096a7a3ec15750bf97b41cb642c1910a0242dbfb936bb8544f8c7e05d266dd3aba29030c89bd26227685a9f3f4ba39467273dad71c77956936e9f85')
+sha512sums=('4835dfa9da8e2f8d61b443f9642c975e71a86cf7d6750d51dff5c233ee941f314409b2d56a3bae3e13327ea715c6da60bf5dcde2e784c6dfe101e768b1304780')
build() {
cd booster-$pkgver
@@ -29,19 +29,29 @@
cd ../init
CGO_ENABLED=0 go build -trimpath -mod=readonly -modcacherw
+
+ cd ..
+ ronn docs/manpage.md
}
check() {
- cd booster-$pkgver/tests
+ cd booster-$pkgver
+
+ # (cd init; go test)
+ # (cd generator; go test)
+
# 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
+ # TEST_DISABLE_KVM=1 go test -v # disable integration tests for now as it require a lot of time and space to build 10G images
}
package() {
cd booster-$pkgver
+ mkdir "$pkgdir/etc/"
+ touch "$pkgdir/etc/booster.yaml"
install -Dp -m755 generator/booster "$pkgdir/usr/bin/booster"
- install -Dp -m644 generator/booster.1 "$pkgdir/usr/share/man/man1/booster.1"
+ install -Dp -m644 docs/manpage.1 "$pkgdir/usr/share/man/man1/booster.1"
install -Dp -m755 init/init "$pkgdir/usr/lib/booster/init"
+ install -Dp -m755 packaging/arch/regenerate_images "$pkgdir/usr/lib/booster/regenerate_images"
install -Dp -m644 packaging/arch/90-booster.hook "$pkgdir/usr/share/libalpm/hooks/90-booster.hook"
install -Dp -m755 packaging/arch/booster-install "$pkgdir/usr/share/libalpm/scripts/booster-install"
}
More information about the arch-commits
mailing list