1 # Maintainer: kayou <treboloc at laposte dot net>
3 pkgname=graphicsmagick-qd16
4 _realname=graphicsmagick
7 pkgdesc="Image processing system with options for photivo-hg"
9 url="http://www.graphicsmagick.org/"
12 depends=('bzip2' 'freetype2' 'ghostscript' 'jasper' 'lcms2' 'xz' 'libtiff' 'libwmf' 'libsm' 'libxml2' 'libltdl')
13 provides=('graphicsmagick')
14 conflicts=('graphicsmagick')
16 source=("http://downloads.sourceforge.net/project/${_realname}/${_realname}/${pkgver}/GraphicsMagick-${pkgver}.tar.xz")
17 sha1sums=('b85b21785bb072fd795f7fc6ac902cffae4e96e6')
20 cd "${srcdir}/GraphicsMagick-$pkgver"
27 --with-gs-font-dir=/usr/share/fonts/Type1 \
28 --with-quantum-depth=16 \
34 cd "${srcdir}/GraphicsMagick-$pkgver"
36 make DESTDIR="${pkgdir}" install
39 install -Dm644 "Copyright.txt" "${pkgdir}/usr/share/licenses/$_realname/Copyright.txt"
41 # Install perl bindings
42 # The patching was introduced in order to build perl module without installing package itself and
43 # not to introduce unnecessary path into LD_RUN_PATH
45 sed -i -e "s:'LDDLFLAGS' => \"\(.*\)\":'LDDLFLAGS' => \"-L${pkgdir}/usr/lib \1\":" Makefile.PL
46 perl Makefile.PL INSTALLDIRS=vendor PREFIX=/usr DESTDIR="${pkgdir}"
47 sed -i -e "s/LDLOADLIBS =/LDLOADLIBS = -lGraphicsMagick/" Makefile
51 # Remove perllocal.pod and .packlist
52 rm -rf "${pkgdir}/usr/lib/perl5/core_perl"
53 rm "${pkgdir}/usr/lib/perl5/vendor_perl/auto/Graphics/Magick/.packlist"