updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / poppler-qt3 / PKGBUILD
blob1e441ac45604c86e100c7cfd525f8daa8e3aee77
1 # Maintainer: Peter Lewis <plewis@aur.archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 # Contributor: catweazle
4 # Contributor: rankin
6 pkgname=poppler-qt3
7 pkgver=0.16.7
8 pkgrel=1
9 pkgdesc="Poppler Qt3 bindings"
10 arch=(i686 x86_64)
11 license=('GPL')
12 depends=('qt3>=3.3.8' "poppler>=${pkgver}")
13 makedepends=('pkgconfig')
14 options=('!libtool')
15 url="http://poppler.freedesktop.org/"
16 source=(http://poppler.freedesktop.org/poppler-${pkgver}.tar.gz
17         poppler-bindings.patch)
18 sha256sums=('fab4e8af2d34d4142a718819fd747d40930b71ef520ee0e6bcc94e2c44f22bcd'
19             '0f9fa33dca271c6c0e31d66cce1847099b63c1443a002aa9bde99a8cb20ad770')
21 build() {
22   . /etc/profile.d/qt3.sh
24   cd "${srcdir}/poppler-${pkgver}"
26   patch -Np2 -i ../poppler-bindings.patch
28   libtoolize --force --copy
29   AT_M4DIR="m4" autoreconf -i
30   ./configure --prefix=/usr --sysconfdir=/etc \
31               --localstatedir=/var --disable-static \
32               --enable-zlib \
33               --enable-libjpeg \
34               --enable-cairo-output \
35               --enable-poppler-qt \
36               --disable-poppler-glib \
37               --disable-gtk-test \
38               --disable-poppler-qt4
39   sed -i -e 's|^LDFLAGS =|LDFLAGS = -L/opt/qt/lib -lqt-mt|' qt/Makefile
40   pushd poppler
41   make libpoppler-cairo.la
42   popd
43   make
46 package() { 
47   cd "${srcdir}/poppler-${pkgver}"
48  make DESTDIR="${pkgdir}" install