blob: e332688f8f458fbd09050270781f0535e8c41a74 (
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
39
40
41
42
43
44
45
|
# Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me)
# Contributor: phariseo <phariseo@hush.com>
pkgname=vlmcsd
pkgver=1113
pkgrel=1
pkgdesc="KMS Emulator in C"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/Wind4/vlmcsd"
license=('unknown')
makedepends=('libffi')
conflicts=('vlmcsd-git' 'vlmcsd-svn')
source=("https://github.com/Wind4/${pkgname}/archive/svn${pkgver}/svn${pkgver}.tar.gz"
"${pkgname}.service"
"${pkgname}@.service"
"${pkgname}.socket")
sha256sums=('62f55c48f5de1249c2348ab6b96dabbe7e38899230954b0c8774efb01d9c42cc'
'49c551ea447764f6ef9a05ef185c0bf850ad719571eff0ae770217de367f2019'
'42318db688fc1ba97c87c4f96683ee663cc7d3d68c1ffcfe6c65403a9294ae90'
'62fc0e5b50102fa7f1ce8e8d2c8cd1cb282dec9169179aa3ee083ca3d60772f3')
build() {
cd "${pkgname}-svn${pkgver}"
make
cd man
gzip -fk *.[0-9]
}
package() {
for unit in vlmcsd.service vlmcsd@.service vlmcsd.socket; do
install -Dm644 "${srcdir}"/${unit} "${pkgdir}"/usr/lib/systemd/system/${unit}
done
cd "${pkgname}-svn${pkgver}"
for bin in vlmcs{d,}; do
install -Dm755 "bin/${bin}" "${pkgdir}"/usr/bin/${bin}
done
cd man
for manpage in *.[0-9]; do
section=${manpage##*.}
install -Dm644 ${manpage}.gz "${pkgdir}"/usr/share/man/man${section}/${manpage}.gz
done
}
|