updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / badvpn / PKGBUILD
blob759c1d662286fda393c959c061cf78a27f963a4d
1 # Maintainer: Ambroz Bizjak <ambrop7@gmail.com>
3 pkgname=badvpn
4 pkgver=1.999.115
5 pkgrel=1
6 pkgdesc="BadVPN peer-to-peer VPN system, and NCD, a programming language for network interface configuration"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/badvpn/"
9 license=('GPL')
10 depends=('nss' 'openssl' 'iproute2')
11 makedepends=('cmake')
12 source=("http://badvpn.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2"
13         'badvpn-ncd.rc.d'
14         'badvpn-ncd.conf.d')
15 md5sums=('1d3f1bf47f0e8aa745d3740460208186'
16          'a5dafc4ce0d0dff6b2ec025b1da4f4f7'
17          '84e8d536246d4423406bc9ca08e42e47')
19 build() {
20         cd ${srcdir}/${pkgname}-${pkgver}
21         cmake -DCMAKE_INSTALL_PREFIX=/usr . || return 1
22         make || return 1
25 package() {
26         cd ${srcdir}/${pkgname}-${pkgver}
27         make DESTDIR=${pkgdir} install || return 1
29         install -D -m755 "$srcdir/badvpn-ncd.rc.d" "$pkgdir/etc/rc.d/badvpn-ncd" || return 1
30         install -D -m0644 "$srcdir/badvpn-ncd.conf.d" "$pkgdir/etc/conf.d/badvpn-ncd" || return 1