updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / shrew-vpn-client / PKGBUILD
blob95473e4c429d746a1722233dfbb02f302a7c47d2
1 # Maintainer: Christian Hammacher <bmasterc gmail com>
2 # Contributor: Christian Hammacher <bmasterc gmail com>
4 pkgname=shrew-vpn-client
5 pkgver=2.1.7
6 pkgrel=0
7 pkgdesc="A portable VPN client for Linux with Qt GUI"
8 arch=('i686' 'x86_64')
9 url="http://www.shrew.net/"
10 license=('osi')
11 depends=('qt3' 'openssl')
12 makedepends=('gcc' 'flex' 'libedit' 'bison' 'cmake')
13 optdepends=('openldap')
14 conflicts=('shrew-vpn-client-alpha')
15 backup=('etc/iked.conf')
16 source=(http://www.shrew.net/download/ike/ike-$pkgver-release.tbz2)
17 md5sums=('bc86e101809fc750013e18480c8c1040')
19 build() {
20   cd $srcdir/ike
22   # Build the whole package
23   cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES -DETCDIR=/etc -DNATT=YES -DPATH_MAN=/usr/share
24   make all
25   make DESTDIR="$pkgdir/" install
26   
27   # Install the daemon script
28   install -D -m755 $startdir/iked $pkgdir/etc/rc.d/iked
30   # The configuration file is already ready for use; just rename it
31   mv $pkgdir/etc/iked.conf.sample $pkgdir/etc/iked.conf
33   # Copy our desktop files
34   install -D -m644 $srcdir/ike/source/ikea/png/ikea.png $pkgdir/usr/share/icons/ikea.png
35   install -D -m755 $startdir/ikea.desktop $pkgdir/usr/share/applications/ikea.desktop