summaryrefslogtreecommitdiff
path: root/community/kovpn/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/kovpn/PKGBUILD')
-rw-r--r--community/kovpn/PKGBUILD16
1 files changed, 10 insertions, 6 deletions
diff --git a/community/kovpn/PKGBUILD b/community/kovpn/PKGBUILD
index 20b76bfc4..ddf9128d6 100644
--- a/community/kovpn/PKGBUILD
+++ b/community/kovpn/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 63636 2012-02-05 12:02:32Z ibiru $
+# $Id: PKGBUILD 90051 2013-05-06 19:38:01Z foutrelis $
# 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=6
+pkgrel=7
pkgdesc="An OpenVPN client management interface for KDE"
arch=('i686' 'x86_64')
url="http://www.kde-apps.org/content/show.php?content=37043"
@@ -26,14 +26,18 @@ build() {
cd $srcdir/$pkgname-$_pkgver
unset LDFLAGS
- . /etc/profile.d/qt3.sh
- export PATH=$QTDIR/bin:$PATH
- export QMAKESPEC=$QTDIR/mkspecs/linux-g++
+ export QTDIR=/usr
+ export QMAKESPEC=/usr/share/qt3/mkspecs/linux-g++
patch -Np1 -i ../kovpn-disable-dcop.patch
- sed -i 's#automake\*1.10\*#automake*1.10* | automake*1.11*#' admin/cvs.sh
+ sed -i "s#automake\*1.10\*#automake*`pacman -Q automake | cut -f2 -d\ |cut -f1-2 -d.`*#" admin/cvs.sh
+ sed -i 's#AM_CONFIG_HEADER#AC_CONFIG_HEADER#g' admin/{cvs.sh,configure.in.min}
make -f admin/Makefile.common cvs
./configure --prefix=/opt/kde --without-arts --with-qt-dir=/opt/qt
make
+}
+
+package() {
+ cd $srcdir/$pkgname-$_pkgver
make prefix=$pkgdir/usr install
}