diff options
Diffstat (limited to 'community/kvpnc/PKGBUILD')
-rw-r--r-- | community/kvpnc/PKGBUILD | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/community/kvpnc/PKGBUILD b/community/kvpnc/PKGBUILD index 382994257..8f65fc769 100644 --- a/community/kvpnc/PKGBUILD +++ b/community/kvpnc/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 89963 2013-05-06 10:41:26Z spupykin $ +# $Id: PKGBUILD 91108 2013-05-19 18:46:49Z dreisner $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Danial Olsen <do@meyl.fo> pkgname=kvpnc pkgver=0.9.6a -pkgrel=3 +pkgrel=4 pkgdesc="A KDE Desktop Environment frontend for various vpn clients" arch=(i686 x86_64 'mips64el') url="http://home.gna.org/kvpnc/" @@ -13,15 +13,20 @@ depends=('kdelibs' 'hicolor-icon-theme') makedepends=('cmake' 'automoc4' 'optipng') install=kvpnc.install source=(http://download.gna.org/$pkgname/$pkgname-${pkgver}-kde4.tar.bz2 - kvpnc-0.9.6a-scriptsec.patch - kvpnc-0.9.6a-gcc47.patch) + "vpnc-paths.patch") md5sums=('bf8b7224284f5d3f8ad5235c599fe9e7' - 'a0ee8caabf56732b8481a426e02f881b' - '9725f5a005dca1e3d1cba86a8e52360a') + '4bf6a10c7be84656723183b876cbaf9d') + +prepare() { + cd "$srcdir/$pkgname-$pkgver-kde4" + + patch -Np0 <"$srcdir/vpnc-paths.patch" + + sed -i '1,1i#include <unistd.h>' src/kvpnc.cpp +} build() { cd $srcdir - sed -i '1,1i#include <unistd.h>' ${pkgname}-${pkgver}-kde4/src/kvpnc.cpp export LDFLAGS=-lX11 mkdir build |