summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb90a262b3f1a07e0a8fd4022000749780248945 (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
# Maintainer: Egor Vorontsov <sdoregor@sdore.me>
# Contributor: Jonathan Liu <net147@gmail.com>

pkgname=vblade
pkgver=25
pkgrel=3
pkgdesc="Virtual EtherDrive(R) blade AoE target"
arch=('x86_64' 'i686')
url="https://github.com/OpenAoE/vblade"
license=('GPL2')
depends=('bash')
source=("git+${url}.git#tag=vblade-${pkgver}")
sha256sums=('SKIP')

build() {
	cd "${srcdir}/${pkgname}"

	make
}

package() {
	cd "${srcdir}/${pkgname}"

	install -d "${pkgdir}/usr/sbin"
	install -d "${pkgdir}/usr/share/man/man8"

	make prefix="${pkgdir}/usr" install

	mv "${pkgdir}/usr/sbin" "${pkgdir}/usr/bin"

	install -Dm644 ./contrib/persistence/vblade{,@}.service -t "${pkgdir}/usr/lib/systemd/system/"
	install -Dm644 ./contrib/persistence/vblade-generator -t "${pkgdir}/usr/lib/systemd/system-generators/"
	install -d "${pkgdir}/etc/vblade.conf.d"
}