summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2955d8ea66e37b1043d93135adc8ca52a74dd9f (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
# Maintainer: Mantas Mikul─Śnas <grawity@gmail.com>
pkgname=stallone
pkgver=0.4.0
pkgrel=1
pkgdesc="NAT-PMP server"
arch=(i686 x86_64)
url="http://tedp.id.au/stallone/"
license=(GPL2)
depends=(libcap libdaemon)
backup=("etc/stallone/natpmd.conf")
source=("http://tedp.id.au/stallone/releases/stallone-$pkgver.tar.gz"
        "stallone.service")
sha256sums=('f012f117f6191e32a6efe09aa21c6401da7268c2b65ca3df304319cede4b63b4'
            'b8d176bad85c254f97468ebafb04325492d013e799228c50c23f00c15953fabd')
validpgpkeys=('1426105B0CB343396624C524C697B70DDDD11D8A') # Ted Percival

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure \
    --prefix=/usr               \
    --sbindir=/usr/bin          \
    --sysconfdir=/etc           \
    --with-natpmd-group=nobody  \
    ;
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install

  cd "$srcdir"
  install -D -m 644 stallone.service "$pkgdir/usr/lib/systemd/system/stallone.service"
}

# vim: ts=2:sw=2:et:ft=sh