diff options
Diffstat (limited to 'libre/parabola-vmbootstrap/PKGBUILD')
-rw-r--r-- | libre/parabola-vmbootstrap/PKGBUILD | 34 |
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" +} |