updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / kcm-ufw / PKGBUILD
bloba41df2950898d12ed84f7d4d4fd210b5ba721967
1 # maintainer: Jekyll Wu <adaptee [at] gmail dot com >
3 pkgname=kcm-ufw
4 pkgver=0.4.1
5 pkgrel=1
6 pkgdesc="KDE4 control module for Ufw(Uncomplicated Firewall)"
7 arch=('i686' 'x86_64')
8 url="http://kde-apps.org/content/show.php/UFW+KControl+Module?content=137789"
9 license=('GPL')
10 depends=('ufw' 'kdebase-workspace' 'polkit-kde' 'openssl' 'python2' )
11 makedepends=('automoc4' 'cmake' 'docbook-xml' 'docbook-xsl')
12 source=(http://craigd.wikispaces.com/file/view/kcm_ufw-${pkgver}.tar.bz2)
14 build() {
16   cd "${srcdir}/kcm_ufw-${pkgver}/"
18   if [ -d build ] ; then
19     rm build -rf
20   fi
22   mkdir build && cd build
24   cmake -DCMAKE_INSTALL_PREFIX=/usr  ..
26   make
28   # only works with python2
29   sed -i '1s/\<python\>/python2/' ./kcm_ufw_helper.py
33 package() {
34   cd "${srcdir}/kcm_ufw-${pkgver}/build"
35   make DESTDIR="${pkgdir}" install || return 1
37 md5sums=('6aceedd7283d51edbda9119748589a11')