summaryrefslogtreecommitdiff
path: root/libre/parabola-vmbootstrap
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2019-12-23 00:12:06 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2020-03-31 19:09:20 -0400
commitfa21a6e76eb29dfaeb1c3470ae1fd9af7e7d844e (patch)
tree92eae93c6bbd53bef53e44bb587724f5015ab2d4 /libre/parabola-vmbootstrap
parent868579188a557854d36d1061bbe4e0d576a9bcdb (diff)
downloadabslibre-fa21a6e76eb29dfaeb1c3470ae1fd9af7e7d844e.tar.gz
abslibre-fa21a6e76eb29dfaeb1c3470ae1fd9af7e7d844e.tar.bz2
abslibre-fa21a6e76eb29dfaeb1c3470ae1fd9af7e7d844e.zip
[parabola-vmbootstrap]: upgrade to v20200331
Diffstat (limited to 'libre/parabola-vmbootstrap')
-rw-r--r--libre/parabola-vmbootstrap/PKGBUILD36
1 files changed, 21 insertions, 15 deletions
diff --git a/libre/parabola-vmbootstrap/PKGBUILD b/libre/parabola-vmbootstrap/PKGBUILD
index 3861c27b1..e11266146 100644
--- a/libre/parabola-vmbootstrap/PKGBUILD
+++ b/libre/parabola-vmbootstrap/PKGBUILD
@@ -1,34 +1,40 @@
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
+# Contributor: bill-auger <bill-auger@programmer.net>
+
pkgname=parabola-vmbootstrap
-pkgver=20200211
+pkgver=20200331
pkgrel=1
-arch=(any)
+arch=('any')
pkgdesc="helper scripts to build and boot parabola virtual machine images"
-license=(GPL3)
+license=('GPL3')
url="https://git.parabola.nu/parabola-vmbootstrap.git/"
depends=(arch-install-scripts bash binutils librelib parted qemu
qemu-arch-extra qemu-user-static qemu-user-static-binfmt sudo wget)
makedepends=(git)
-source=(git+https://git.parabola.nu/parabola-vmbootstrap.git)
+source=(git+https://git.parabola.nu/${pkgname}.git#tag=v${pkgver}
sha256sums=('SKIP')
-pkgver() {
- cd "$srcdir"/$pkgname
- printf "%s" "$(git log -1 --format="%at" | xargs -I{} date -d @{} +%Y%m%d)"
-}
-package() {
+package()
+{
cd "$srcdir"/$pkgname
- install -Dm755 src/pvmbootstrap.sh "$pkgdir"/usr/bin/pvmbootstrap
- install -Dm755 src/pvmboot.sh "$pkgdir"/usr/bin/pvmboot
- install -Dm755 src/pvm2tarball.sh "$pkgdir"/usr/bin/pvm2tarball
+ local _bin_dir="$pkgdir"/usr/bin
+ local _lib_dir="$pkgdir"/usr/lib/$pkgname
+ local _lic_dir="$pkgdir"/usr/share/licenses/$pkgname
+ local _hook_script
+
+ install -Dm755 src/pvmbootstrap.sh "$_bin_dir"/pvmbootstrap
+ install -Dm755 src/pvmboot.sh "$_bin_dir"/pvmboot
+ install -Dm755 src/pvm2tarball.sh "$_bin_dir"/pvm2tarball
- install -Dm644 src/hooks/hook-ethernet-dhcp.sh \
- "$pkgdir"/usr/lib/libretools/pvmbootstrap/hook-ethernet-dhcp.sh
+ install -Dm755 src/pvm-common.sh.inc "$_lib_dir"/pvm-common.sh.inc
+ for _hook_script in src/hooks/*
+ do install -Dm644 $_hook_script "$_lib_dir"/$(basename $_hook_script)
+ done
- install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 COPYING "$_lic_dir"/LICENSE
}