summaryrefslogtreecommitdiff
path: root/pcr/systemd-qemu/PKGBUILD
blob: c49390cd5b680e71535340a873cb3d1d62f3fbfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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"
}