# $Id: PKGBUILD 103918 2014-01-13 17:16:50Z andyrtr $ # Maintainer: Sergej Pupykin # Contributor: Danial Olsen pkgname=kvpnc pkgver=0.9.6a pkgrel=5 pkgdesc="A KDE Desktop Environment frontend for various vpn clients" arch=(i686 x86_64 'mips64el') url="http://home.gna.org/kvpnc/" license=("GPL") depends=('kdelibs' 'hicolor-icon-theme') makedepends=('cmake' 'automoc4' 'optipng') install=kvpnc.install source=(http://download.gna.org/$pkgname/$pkgname-${pkgver}-kde4.tar.bz2 "vpnc-paths.patch") md5sums=('bf8b7224284f5d3f8ad5235c599fe9e7' '4bf6a10c7be84656723183b876cbaf9d') prepare() { cd "$srcdir/$pkgname-$pkgver-kde4" patch -Np0 <"$srcdir/vpnc-paths.patch" sed -i '1,1i#include ' src/kvpnc.cpp } build() { cd $srcdir export LDFLAGS=-lX11 mkdir build cd build cmake ../${pkgname}-${pkgver}-kde4 \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release make find -name '*.png' -exec optipng -quiet -force -fix {} \; } package() { cd $srcdir/build make DESTDIR=$pkgdir install }