pkgname: graphicsmagick pkgver: '1.3.48' pkgrel: 1 pkgdesc: Image processing system. url: 'https://www.graphicsmagick.org/' arch: x86_64 license: - MIT depends: [] makedepends: - perl - jasper - libpng - libwmf - libxml2 - libtiff source: - 'https://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/GraphicsMagick-${pkgver}.tar.xz' sha256sums: - SKIP build: "cd GraphicsMagick-${pkgver}\n\n./configure \\\n\t\t--prefix=/usr \\\n\t\t--enable-shared \\\n\t\t--with-modules \\\ \n\t\t--with-perl \\\n\t\t--with-gs-font-dir=/usr/share/fonts/Type1 \\\n\t\t--with-quantum-depth=16 \\\n\t\t--with-threads\n\ make\nmake DESTDIR=${PKGDIR} install\n\ncd PerlMagick\n\tsed -i -e \"s:'LDDLFLAGS' => \\\"\\(.*\\)\\\":'LDDLFLAGS' =>\ \ \\\"-L${PKGDIR}/usr/lib \\1\\\":\" Makefile.PL\n\tperl Makefile.PL INSTALLDIRS=vendor PREFIX=/usr DESTDIR=${PKGDIR}\n\t\ sed -i -e \"s/LDLOADLIBS =/LDLOADLIBS = -lGraphicsMagick/\" Makefile\n\tmake\n\tmake install\n\n\t# Remove perllocal.pod\ \ and .packlist\n\trm -f ${PKGDIR}/usr/lib/share/perl5/base/perllocal.pod\n\trm -rf ${PKGDIR}/usr/lib/perl5/core_perl\n\t\ rm -rf ${PKGDIR}/usr/lib/perl5/vendor_perl/auto/Graphics/Magick/.packlist\n\n install -Dm644 ../Copyright.txt\ \ ${PKGDIR}/usr/share/licenses/${pkgname}/Copyright.txt\t\n" package: | true