opt/imagemagick/Pkgfile

35 lines
1017 B
Plaintext

# Description: Image manipulation wizard
# URL: http://www.imagemagick.org/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Packager: danm, maol, jaeger, sip
# Depends on: util-linux lcms2 pango xorg-libxt
name=imagemagick
version=7.0.7-39
release=1
source=(https://www.imagemagick.org/download/releases/ImageMagick-$version.tar.xz)
build () {
cd ImageMagick-$version
./configure --prefix=/usr \
--enable-shared \
--with-modules \
--with-perl=yes \
--with-lcms=yes
make
make DESTDIR=$PKG install
# rebuild perl binding .so files to remove bogus workdir rpath
cd PerlMagick
find . -name '*.so' -delete
sed -i 's,LD_RUN_PATH="$(LD_RUN_PATH)" ,,' quantum/Makefile
make DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
find $PKG -regex '.*\(ChangeLog\|LICENSE\|NEWS\.txt\)$' -delete
find $PKG -regex '.*\(\.packlist\|perllocal.pod\|\.bs\)$' -delete
find $PKG -type d -empty -delete
}