mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-27 00:10:29 +00:00
112 lines
3.4 KiB
Bash
112 lines
3.4 KiB
Bash
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
# Contributor: Eric Bélanger <eric@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - upstream patch to fix timeout issue, should be included in next release
|
|
|
|
pkgname=imagemagick
|
|
pkgver=7.1.1.20
|
|
pkgrel=1.1
|
|
_relname=ImageMagick-${pkgver%%.*}
|
|
_tarname=ImageMagick-${pkgver%.*}-${pkgver##*.}
|
|
pkgdesc='An image viewing/manipulation program'
|
|
url='https://www.imagemagick.org/'
|
|
arch=(x86_64)
|
|
license=(custom)
|
|
depends=(libltdl lcms2 fontconfig libxext liblqr libraqm libpng libxml2 fftw)
|
|
optdepends=('ghostscript: PS/PDF support'
|
|
'jbigkit: JBIG support'
|
|
'libheif: HEIF support'
|
|
'libjxl: JPEG XL support'
|
|
'libraw: DNG support'
|
|
'librsvg: SVG support'
|
|
'libwebp: WEBP support'
|
|
'libwmf: WMF support'
|
|
'libzip: OpenRaster support'
|
|
'ocl-icd: OpenCL support'
|
|
'openexr: OpenEXR support'
|
|
'openjpeg2: JPEG2000 support'
|
|
'djvulibre: DJVU support'
|
|
'pango: Text rendering')
|
|
options+=(!emptydirs libtool)
|
|
backup=(etc/$_relname/{colors,delegates,log,mime,policy,quantization-table,thresholds,type,type-{dejavu,ghostscript}}.xml)
|
|
provides=(libmagick)
|
|
makedepends=(ghostscript openexr libwmf librsvg openjpeg2 libraw opencl-headers libwebp libzip libjxl
|
|
chrpath ocl-icd glu ghostpcl ghostxps libheif jbigkit djvulibre)
|
|
checkdepends=(gsfonts ttf-dejavu)
|
|
replaces=(imagemagick-doc)
|
|
source=(https://imagemagick.org/archive/$_tarname.tar.xz{,.asc}
|
|
arch-fonts.diff
|
|
https://github.com/ImageMagick/ImageMagick/commit/3c727503c6ae449160dc92cf6222ebe28ef8fb52.patch)
|
|
sha256sums=('f82478f2fef516b1f52736011255aa32a7197c8f56c02963850d8d4baa08514d'
|
|
'SKIP'
|
|
'a85b744c61b1b563743ecb7c7adad999d7ed9a8af816650e3ab9321b2b102e73'
|
|
'33cf55f9d5b74311df0b4f564409a7c5176e5e7b1b092143dab874726b1646d9')
|
|
validpgpkeys=(D8272EF51DA223E4D05B466989AB63D48277377A) # Lexie Parsimoniae
|
|
|
|
shopt -s extglob
|
|
|
|
prepare() {
|
|
mkdir -p docpkg/usr/share
|
|
|
|
cd $_tarname
|
|
|
|
# Fix up typemaps to match our packages, where possible
|
|
patch -p1 -i ../arch-fonts.diff
|
|
|
|
patch -p1 -i ../3c727503c6ae449160dc92cf6222ebe28ef8fb52.patch
|
|
}
|
|
|
|
build() {
|
|
cd $_tarname
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--with-dejavu-font-dir=/usr/share/fonts/TTF \
|
|
--with-gs-font-dir=/usr/share/fonts/gsfonts \
|
|
PSDelegate=/usr/bin/gs \
|
|
XPSDelegate=/usr/bin/gxps \
|
|
PCLDelegate=/usr/bin/gpcl6 \
|
|
--enable-hdri \
|
|
--enable-opencl \
|
|
--without-gslib \
|
|
--with-djvu \
|
|
--with-fftw \
|
|
--with-jxl \
|
|
--with-lqr \
|
|
--with-modules \
|
|
--with-openexr \
|
|
--with-openjp2 \
|
|
--with-perl \
|
|
--with-perl-options=INSTALLDIRS=vendor \
|
|
--with-rsvg \
|
|
--with-webp \
|
|
--with-wmf \
|
|
--with-xml \
|
|
--without-autotrace \
|
|
--without-dps \
|
|
--without-fpx \
|
|
--without-gcc-arch \
|
|
--without-gvc
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
make
|
|
}
|
|
|
|
check() (
|
|
cd $_tarname
|
|
ulimit -n 4096
|
|
make check
|
|
)
|
|
|
|
package() {
|
|
cd $_tarname
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
find "$pkgdir/usr/lib/perl5" -name '*.so' -exec chrpath -d {} +
|
|
rm "$pkgdir"/etc/$_relname/type-{apple,urw-base35,windows}.xml
|
|
rm "$pkgdir"/usr/lib/*.la
|
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE NOTICE
|
|
}
|