summaryrefslogtreecommitdiff
path: root/pcr/systemd-qemu
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/systemd-qemu')
-rw-r--r--pcr/systemd-qemu/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/pcr/systemd-qemu/PKGBUILD b/pcr/systemd-qemu/PKGBUILD
new file mode 100644
index 000000000..c49390cd5
--- /dev/null
+++ b/pcr/systemd-qemu/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Luke Shumaker <lukeshu@parabola.nu>
+
+pkgname=systemd-qemu
+pkgver=20180714
+url=https://git.lukeshu.com/$pkgname
+license=('AGPL')
+
+pkgrel=1
+arch=(any)
+depends=(qemu 'bash>=4.4' numactl socat util-linux systemd)
+makedepends=(git)
+source=("git+${url}.git#tag=v${pkgver}")
+sha256sums=('SKIP')
+
+backup=(
+ 'etc/systemd/system/qemu'
+ 'etc/systemd/system/qemu@.service'
+ 'etc/conf.d/qemu.d/beefcake'
+ 'etc/conf.d/qemu.d/qemutest'
+ 'etc/conf.d/qemu.d/testbox'
+)
+
+_makeargs=(
+ sysconfdir=/etc
+ bindir=/etc/systemd/system
+ systemunitdir=/etc/systemd/system
+)
+
+build() {
+ cd "$srcdir/$pkgname"
+ make "${_makeargs[@]}"
+}
+
+
+package() {
+ cd "$srcdir/$pkgname"
+ make "${_makeargs[@]}" install DESTDIR="$pkgdir"
+}