summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-03-18 23:16:25 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-03-18 23:16:25 +0100
commit05e76555201d13f135c8c7370934a491fcd5484e (patch)
tree298efb62c6ad41c4a774b5620122ba17f3fd3bc2
parent9afe4170f810826963ce71b8f9d6dd05378af43b (diff)
downloadabslibre-05e76555201d13f135c8c7370934a491fcd5484e.tar.gz
abslibre-05e76555201d13f135c8c7370934a491fcd5484e.tar.bz2
abslibre-05e76555201d13f135c8c7370934a491fcd5484e.zip
libre/parabola-vmbootstrap: added
-rw-r--r--libre/parabola-vmbootstrap/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/libre/parabola-vmbootstrap/PKGBUILD b/libre/parabola-vmbootstrap/PKGBUILD
new file mode 100644
index 000000000..fd751fbdd
--- /dev/null
+++ b/libre/parabola-vmbootstrap/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Andreas Grapentin <andreas@grapentin.org>
+
+pkgname=parabola-vmbootstrap
+pkgver=20190318
+pkgrel=1
+arch=(any)
+pkgdesc="helper scripts to build and boot parabola virtual machine images"
+license=(GPL3)
+url="https://git.parabola.nu/~oaken-source/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/~oaken-source/parabola-vmbootstrap.git)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir"/$pkgname
+ printf "%s" "$(git log -1 --format="%at" | xargs -I{} date -d @{} +%Y%m%d)"
+}
+
+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
+
+ install -Dm644 src/hooks/hook-ethernet-dhcp.sh \
+ "$pkgdir"/usr/lib/libretools/pvmbootstrap/hook-ethernet-dhcp.sh
+
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}