summaryrefslogtreecommitdiff
path: root/community/kvpnc/PKGBUILD
blob: 38299425749812b02af19f600992a17df341c1c3 (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
34
35
36
37
38
39
# $Id: PKGBUILD 89963 2013-05-06 10:41:26Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Danial Olsen <do@meyl.fo>

pkgname=kvpnc
pkgver=0.9.6a
pkgrel=3
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
	kvpnc-0.9.6a-scriptsec.patch
	kvpnc-0.9.6a-gcc47.patch)
md5sums=('bf8b7224284f5d3f8ad5235c599fe9e7'
	 'a0ee8caabf56732b8481a426e02f881b'
	 '9725f5a005dca1e3d1cba86a8e52360a')

build() {
  cd $srcdir
  sed -i '1,1i#include <unistd.h>' ${pkgname}-${pkgver}-kde4/src/kvpnc.cpp

  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
}