[arch-commits] Commit in kvpnc/trunk (PKGBUILD)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon May 6 06:41:08 EDT 2013


    Date: Monday, May 6, 2013 @ 12:41:07
  Author: spupykin
Revision: 89962

upgpkg: kvpnc 0.9.6a-3

upd

Modified:
  kvpnc/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-06 10:41:03 UTC (rev 89961)
+++ PKGBUILD	2013-05-06 10:41:07 UTC (rev 89962)
@@ -4,27 +4,29 @@
 
 pkgname=kvpnc
 pkgver=0.9.6a
-pkgrel=2
+pkgrel=3
 pkgdesc="A KDE Desktop Environment frontend for various vpn clients"
 arch=(i686 x86_64)
 url="http://home.gna.org/kvpnc/"
 license=("GPL")
 depends=('kdelibs' 'hicolor-icon-theme')
-makedepends=('cmake' 'automoc4')
+makedepends=('cmake' 'automoc4' 'optipng')
 install=kvpnc.install
 source=(http://download.gna.org/$pkgname/$pkgname-${pkgver}-kde4.tar.bz2)
 md5sums=('bf8b7224284f5d3f8ad5235c599fe9e7')
 
 build() {
+  cd $srcdir
+  sed -i '1,1i#include <unistd.h>' ${pkgname}-${pkgver}-kde4/src/kvpnc.cpp
+
   export LDFLAGS=-lX11
-
-  cd $srcdir
   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() {



More information about the arch-commits mailing list