aboutsummaryrefslogtreecommitdiffstats
path: root/non-free/vlmcsd/APKBUILD
blob: ac6f1ba3645f0429abf64f3822441dc0850ac760 (plain) (blame)
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
39
40
41
42
43
44
45
46
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=vlmcsd
pkgver=1112
pkgrel=0
pkgdesc="KMS Emulator in C"
url="http://forums.mydigitallife.info/threads/50234"
arch="all"
license="other"
options="!check"
depends=""
depends_dev=""
makedepends="$depends_dev"
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-openrc"
source="vlmcsd-svn$pkgver.tar.gz::https://github.com/Wind4/vlmcsd/archive/svn$pkgver.tar.gz
	$pkgname.initd
	config.patch"
builddir="$srcdir/vlmcsd-svn$pkgver"

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	install -Dm 755 bin/vlmcsd \
		"$pkgdir"/usr/bin/vlmcsd
	install -Dm 755 bin/vlmcs \
		"$pkgdir"/usr/bin/vlmcs
	install -Dm 644 etc/vlmcsd.ini \
		"$pkgdir"/etc/vlmcsd/vlmcsd.ini
	install -Dm 644 etc/vlmcsd.kmd \
		"$pkgdir"/etc/vlmcsd/vlmcsd.kmd
	for i in vlmcs.1 vlmcsd.7 vlmcsd.8 vlmcsd.ini.5; do
		install -Dm 644 man/$i \
			"$pkgdir"/usr/share/man/man${i##*.}/$i
	done
	install -Dm 755 "$srcdir"/vlmcsd.initd \
		"$pkgdir"/etc/init.d/vlmcsd
}

sha512sums="3077460de0b30f3672c42f6712d17f02fc075d0d8dabc95d520b2057a167296dc3789991b7e5917a379521b20428a640a54dd3d0628a3fa77d8b63a8471b5fdf  vlmcsd-svn1112.tar.gz
167bd698015bd4548e44f428dc838b486695f1f428204cd10224a76374b83877fe50ec9a3a431b1ae94e17682bf098cdd23457b328f753a245eb056760cef770  vlmcsd.initd
70d6e11a46d65ecee7f91b64775eed6df105b2b16f986b3d7f483c1b58a8f21ecfbdb0f43d2f48643a49cf36564f4c7dbd6603f7e19ce5f44ee180c8e5065971  config.patch"