summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6cdd125008f84f70050eb86edbfae0e1ff5e943 (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
46
47
48
49
50
51
# Maintainer: David Bernhard <davidbernhard.w@gmail.com>
pkgname=simple-reaction-daemon
pkgver=0.0.2
pkgrel=1
pkgdesc="Simple Reaction Daemon"
arch=('any')
_srctag=v${pkgver}
url="https://github.com/dbernhard-0x7CD/simple-reaction-daemon/commits/$_srctag"
license=('GPL2')
groups=()
depends=(libsystemd libconfig glibc)
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=('etc/srd/srd.conf')
options=('strip')
install=
changelog=
source=(
    "$pkgname::git+https://github.com/dbernhard-0x7CD/simple-reaction-daemon?signed=tag=$_srctag"
    'srd.conf')
noextract=()
sha256sums=('SKIP'
            'b96840484ced981d203de18da82e2710e21335799aa3f5e910f5d749b4252245')
validpgpkeys=()


prepare() {
    echo 0 > /dev/null
}

build() {
    cd $pkgname
    git submodule init
    git submodule update
    make
}

package() {
    install -Dm755 "${srcdir}/${pkgname}/srd" "${pkgdir}/usr/bin/srd"

    install -Dm644 ./srd.conf "${pkgdir}/etc/srd/srd.conf"
    install -Dm644 "${srcdir}/${pkgname}/srd.service" "${pkgdir}/usr/lib/systemd/system/srd.service"

    install -Dm644 "${srcdir}/${pkgname}/ThirdPartyLicenses.txt" "${pkgdir}/usr/share/srd/ThirdPartyLicenses.txt"

    install -Dm644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/srd/LICENSE"
}