# $Id: PKGBUILD 6547 2008-07-25 00:44:29Z pierre $ # Maintainer: Eric Belanger # Contributor: Patrick Leslie Polzer # Contributor: J. Santiago Hirschfeld pkgname=qalculate-kde pkgver=0.9.6 pkgrel=4 pkgdesc="KDE frontend for libqalculate" arch=('i686' 'x86_64') url="http://qalculate.sourceforge.net/" license=('GPL') depends=('libqalculate' 'kdelibs3' 'cln>=1.2.0') source=(http://downloads.sourceforge.net/sourceforge/qalculate/${pkgname}-${pkgver}.tar.gz \ qalculate-kde-0.9.6-cln-config.patch) md5sums=('2d41dc887ad3cf5de29ba4d570de263a' '2d966c2c8c0d3c8f1b6d5eace248daea') sha1sums=('f9ebf4e3b7a94d867f45061bc528f0b1e31f72d6' '5792b6b4ba5bebf3b309725bd77a631423bc2e83') build() { cd ${srcdir}/${pkgname}-${pkgver} patch -p1 < ../qalculate-kde-0.9.6-cln-config.patch || return 1 autoconf || return 1 ./configure --prefix=/opt/kde --without-arts || return 1 sed -i -e "s:\$CXXFLAGS -fno-exceptions:\$CXXFLAGS:" configure || return 1 make || return 1 make DESTDIR=${pkgdir} install || return 1 }