updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / kpdf2 / PKGBUILD
blob8bd0c3b8da46f93a7dd27b8b2314cd59dc6cbea9
1 # Maintainer: veox <veox at wre dot ath dot cx>
2 # Contributor: Nikita "dragon_djanic" Bukhvostov <dragon.djanic@gmail.com>
4 pkgname=kpdf2
5 pkgver=0.3.1
6 pkgrel=7
7 pkgdesc="An old version of KDE's PDF reader, made obsolete by Occular."
8 url="http://sourceforge.net/projects/kpdf2"
9 arch=('i686' 'x86_64')
10 license="GPL" 
11 depends=(kdelibs qt libpng libjpeg zlib)
12 makedepends=(pkgconfig doxygen perl)
13 conflicts=(kdegraphics)
14 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz \
15   generator_pdf.h.patch)
16 md5sums=('2986bb22a692eb7e97d21bf0e69ce02f' 'e0d79996666ab1ac6ee983516a8e6fd9')
18 build() { 
19   cd $srcdir/$pkgname-$pkgver
21   echo "Patching generator_pdf.h..."
22   patch ./kpdf/core/generator_pdf/generator_pdf.h $srcdir/generator_pdf.h.patch || return 1
23   echo "Done patching!"
25   ./configure --prefix=`kde-config --prefix` --with-qt-dir=/opt/qt --without-arts
26   make || return 1 
27   make DESTDIR=$startdir/pkg install