summaryrefslogtreecommitdiff
path: root/pcr/systemd-qemu
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-08-23 20:34:50 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-08-23 20:34:50 -0400
commitaa19b7053456c8d4218187be9e42196b0b5d91da (patch)
tree4e4356842d3f531e35d156317add176b4dfab502 /pcr/systemd-qemu
parent6316b0f6cdf23e4876b1466928646b16979cacc6 (diff)
downloadabslibre-aa19b7053456c8d4218187be9e42196b0b5d91da.tar.gz
abslibre-aa19b7053456c8d4218187be9e42196b0b5d91da.tar.bz2
abslibre-aa19b7053456c8d4218187be9e42196b0b5d91da.zip
add pcr/systemd-qemu
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"
+}