summaryrefslogtreecommitdiff
path: root/testing/fssos-nsvs/PKGBUILD
blob: aca81ddc451f1b1e15c5fe0599bf98efbc4be956 (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
# $Id: PKGBUILD 167185 2012-09-26 22:19:44Z tomegun $
# Maintainer: Dale Blount <dale@archlinux.org>

pkgname=fssos-nsvs
pkgver=0.5
pkgrel=9
pkgdesc="NSVS for FSSOS"
arch=('i686' 'x86_64')
url="http://fssos.sourceforge.net/"
license=('GPL')
depends=('bash' 'mysql')
backup=('etc/nsvsd.conf')
options=('!libtool' '!makeflags')
install=$pkgname.install
source=("http://downloads.sourceforge.net/sourceforge/fssos/nsvs-$pkgver.tar.gz"
        'nsvsd'
	'nsvsd.service')

build() {
  cd $srcdir/nsvs-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc
  make CFLAGS="${CFLAGS} -D_GNU_SOURCE"
}

package() {
  cd $srcdir/nsvs-$pkgver
  make DESTDIR=$pkgdir install
  install -D -m755 "$srcdir/nsvsd" "$pkgdir/etc/rc.d/nsvsd"
  install -D -m644 "$srcdir/nsvsd.service" "$pkgdir/usr/lib/systemd/system/nsvsd.service"
}
md5sums=('3f17c2f6339f1a322b712b467023d825'
         '4dfd9dc0d69b375587e39ab2621d9ea9'
         '61e970d0704875b1da83cb4e9fc0eef5')