Advertisement
Guest User

Untitled

a guest
Sep 19th, 2011
159
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # $Id$
  2. # Maintainer: Ronald van Haren <ronald.archlinux.org>
  3. # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
  4. # Contributor: Anton Leontiev <bunder@t-25.ru>
  5.  
  6. pkgname=graphicsmagick
  7. pkgver=1.3.12
  8. pkgrel=2
  9. pkgdesc="Image processing system"
  10. arch=('i686' 'x86_64')
  11. url="http://www.graphicsmagick.org/"
  12. license=('MIT')
  13. makedepends=('perl')
  14. depends=('bzip2' 'freetype2' 'ghostscript' 'jasper' 'lcms' 'libsm'
  15.     'libtiff' 'libwmf' 'libxml2' 'libtool')
  16. options=('!libtool')
  17. source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-history/1.3/GraphicsMagick-${pkgver}.tar.gz)
  18. md5sums=('2cf6e2eea0d7af3019c9a89b81aad624')                                                                                                                                                    
  19.  
  20. build() {
  21.   cd "${srcdir}/GraphicsMagick-$pkgver"
  22.  
  23.   ./configure --prefix=/usr --with-perl --enable-shared --with-gs-font-dir=/usr/share/fonts/Type1 --with-quantum-depth=16
  24.   make
  25. }
  26.  
  27. package() {
  28.   cd "${srcdir}/GraphicsMagick-$pkgver"
  29.  
  30.   make DESTDIR="${pkgdir}" install
  31.  
  32.   # Install MIT license
  33.   install -Dm644 "Copyright.txt" "${pkgdir}/usr/share/licenses/$pkgname/Copyright.txt"
  34.  
  35.   # Install perl bindings
  36.   # The patching was introduced in order to build perl module without installing package itself and
  37.   # not to introduce unnecessary path into LD_RUN_PATH
  38.   cd PerlMagick
  39.   sed -i -e "s:'LDDLFLAGS'  => \"\(.*\)\":'LDDLFLAGS'  => \"-L${pkgdir}/usr/lib \1\":" Makefile.PL
  40.   perl Makefile.PL INSTALLDIRS=vendor PREFIX=/usr DESTDIR="${pkgdir}"
  41.   sed -i -e "s/LDLOADLIBS =/LDLOADLIBS = -lGraphicsMagick/" Makefile
  42.   make
  43.   make install
  44.  
  45.   # Remove perllocal.pod and .packlist
  46.   rm -rf "${pkgdir}/usr/lib/perl5/core_perl"
  47.   rm "${pkgdir}/usr/lib/perl5/vendor_perl/auto/Graphics/Magick/.packlist"
  48. }
Advertisement
RAW Paste Data Copied
Advertisement