summaryrefslogtreecommitdiff
path: root/community/kovpn/PKGBUILD
blob: 17d94f1200948a5b219b5048993bfc9f8cb3d07e (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
40
# $Id: PKGBUILD 9444 2010-01-25 14:13:42Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Douglas Soares de Andrade <dsandrade@gmail.com>

pkgname=kovpn
pkgver=0.3pre7
_pkgver=0.3.pre7
pkgrel=4
pkgdesc="An OpenVPN client management interface for KDE"
arch=('i686' 'x86_64')
url="http://www.kde-apps.org/content/show.php?content=37043"
license=('GPL')
depends=('openvpn' 'kdelibs3' 'xdg-utils')
makedepends=('automake' 'autoconf')
options=('libtool')
install=kovpn.install
source=("http://projects.fslab.de/projects/kovpn/chrome/site/kovpn-${_pkgver}.tar.bz2"
	"kovpn-disable-dcop.patch::http://bugs.archlinux.org/task/15464?getfile=4173"
	'traywindow_x86_64.patch')
md5sums=('19b61cf9f84088baffbd5bb0a287422c'
         '21171b74f76289daea1cc61eedaa4dba'
         'bf6218bf2686b6fe41874d5df4e71d63')

build() {
  cd $startdir/src/$pkgname-$_pkgver

  . /etc/profile.d/qt3.sh
  export PATH=$QTDIR/bin:$PATH
  export QMAKESPEC=$QTDIR/mkspecs/linux-g++

  patch -Np1 -i ../kovpn-disable-dcop.patch

  [ "$CARCH" = "x86_64" ] &&  patch -Np0 -i ../traywindow_x86_64.patch
  sed -i 's#automake\*1.10\*#automake*1.10* | automake*1.11*#' admin/cvs.sh

  make -f admin/Makefile.common cvs
  ./configure --prefix=/opt/kde --without-arts --with-qt-dir=/opt/qt
  make || return 1
  make prefix=$startdir/pkg/usr install
}