summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba51d3521557e2ff4486a1bad784ff7cba5e996b (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
# Maintainer: Petr Kutálek <petr@kutalek.cz>
pkgname=dynfwd
pkgver=git
pkgdesc='An unofficial secure and minimalistic DynFW client for Turris:Sentinel by CZ.NIC'
url='https://github.com/petrkutalek/dynfwd'
license=('MIT')

pkgrel=1
epoch=
arch=('i686' 'x86_64' 'arm')
depends=('ipset' 'zeromq' 'msgpack-c')
makedepends=('git')
source=(
    "$pkgname"::"git+https://github.com/petrkutalek/dynfwd.git"
    )
sha256sums=(
    'SKIP'
    )

pkgver () {
    cd "$pkgname"
    printf '%s' "$(git tag -l -n1 | cut -f1 -d' ' | cut -c 2-)"
}

prepare () {
    cd "$pkgname"
    git submodule init
    git submodule update
}

build () {
    cd "$pkgname/src"
    make
}

package () {
    cd "$pkgname/src"
    make DESTDIR="$pkgdir/usr" install
}