summaryrefslogtreecommitdiff
path: root/extra/ntrack/PKGBUILD
blob: 160ac938dd51d192856cb3c3a2097c4ba519697b (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 150906 2012-02-23 13:55:25Z allan $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=ntrack
pkgver=16
pkgrel=2
epoch=1
pkgdesc="A network connectivity tracking library"
arch=('i686' 'x86_64')
url="http://launchpad.net/ntrack/"
license=('LGPL')
depends=('qt' 'libnl')
makedepends=('python2')
options=('!libtool' '!emptydirs')
source=("http://launchpad.net/${pkgname}/main/0${pkgver}/+download/${pkgname}-0${pkgver}.tar.gz"
        'libnl3.patch')
md5sums=('21691dac43460a6791cba3decbc68242'
         '0a1f6b7f9a01c323e81d6da95cad93cd')

build() {
  cd "${srcdir}/${pkgname}-0${pkgver}"
  patch -p1 -i "${srcdir}"/libnl3.patch

  ./configure --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var
  make
}

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