summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Severance2019-05-14 01:05:43 -0400
committerChris Severance2019-05-14 01:05:43 -0400
commit749541945bfa5eb1c12f2d8716b533e4b06d5d64 (patch)
tree2e028f1df59c8f6cd8ff71b06a45051da3d5bf37
parentf654a5c76d229f188e6c2fd61aed00292c6f740f (diff)
downloadaur-749541945bfa5eb1c12f2d8716b533e4b06d5d64.tar.gz
autu: Update to 7.0.8.45.r15636.g909488f04-1
-rw-r--r--.SRCINFO96
-rw-r--r--PKGBUILD169
-rw-r--r--libpng_mmx_patch_x86_64.patch11
3 files changed, 153 insertions, 123 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1c666e59fea2..217ce14f8a3a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,74 +1,86 @@
# Generated by mksrcinfo v8
-# Mon Aug 14 04:27:08 UTC 2017
+# Tue May 14 05:05:43 UTC 2019
pkgbase = imagemagick-git
pkgdesc = An image viewing/manipulation program
- pkgver = 7.0.6.7.r12351.geaada474d
+ pkgver = 7.0.8.45.r15636.g909488f04
pkgrel = 1
- url = http://www.imagemagick.org/script/
- arch = i686
+ url = https://www.imagemagick.org/
arch = x86_64
license = custom
- makedepends = libltdl
- makedepends = lcms2
- makedepends = libxt
- makedepends = fontconfig
- makedepends = libxext
+ checkdepends = gsfonts
+ checkdepends = ttf-dejavu
makedepends = ghostscript
makedepends = openexr
makedepends = libwmf
makedepends = librsvg
makedepends = libxml2
- makedepends = liblqr
makedepends = openjpeg2
+ makedepends = libraw
makedepends = opencl-headers
- makedepends = ocl-icd
makedepends = libwebp
+ makedepends = chrpath
+ makedepends = ocl-icd
+ makedepends = glu
+ makedepends = ghostpcl
+ makedepends = ghostxps
+ makedepends = libheif
+ makedepends = jbigkit
+ makedepends = lcms2
+ makedepends = libxext
+ makedepends = liblqr
+ makedepends = libraqm
+ makedepends = libpng
makedepends = patch
makedepends = git
source = git+https://github.com/ImageMagick/ImageMagick.git
- source = libpng_mmx_patch_x86_64.patch
- source = perlmagick.rpath.patch::https://projects.archlinux.org/svntogit/packages.git/plain/trunk/perlmagick.rpath.patch?h=packages/imagemagick
+ source = arch-fonts.diff::https://projects.archlinux.org/svntogit/packages.git/plain/trunk/arch-fonts.diff?h=packages/imagemagick
+ source = IM7-GS-policy.patch::https://projects.archlinux.org/svntogit/packages.git/plain/trunk/IM7-GS-policy.patch?h=packages/imagemagick
sha256sums = SKIP
- sha256sums = 4f3ab23349fd3958a88eb09a7107e08c2c6f3953287907103ec48cfa83575e87
- sha256sums = 17218bbecc17f3c7a86935a09d5a47e46113a1fc28f7d91c2fe495019cc36088
+ sha256sums = a85b744c61b1b563743ecb7c7adad999d7ed9a8af816650e3ab9321b2b102e73
+ sha256sums = f20c09860da65a4259ec9627ceeca7d993949b7460fa199c5ffd874633814cf6
pkgname = imagemagick-git
- pkgdesc = An image viewing/manipulation program
depends = libltdl
depends = lcms2
- depends = libxt
depends = fontconfig
depends = libxext
depends = liblqr
- optdepends = imagemagick-doc: for additional information
- optdepends = ghostscript: for Ghostscript support
- optdepends = openexr: for OpenEXR support
- optdepends = openjpeg2: for JP2 support
- optdepends = libwmf: for WMF support
- optdepends = librsvg: for SVG support
- optdepends = libxml2: for XML support
- optdepends = libpng: for PNG support
- optdepends = libwebp: for WEBP support
- provides = imagemagick=7.0.6.7
+ depends = libraqm
+ depends = libpng
+ depends = libxml2
+ optdepends = ghostscript: PS/PDF support
+ optdepends = libheif: HEIF support
+ optdepends = libraw: DNG support
+ optdepends = librsvg: SVG support
+ optdepends = libwebp: WEBP support
+ optdepends = libwmf: WMF support
+ optdepends = libxml2: Magick Scripting Language
+ optdepends = ocl-icd: OpenCL support
+ optdepends = openexr: OpenEXR support
+ optdepends = openjpeg2: JPEG2000 support
+ optdepends = pango: Text rendering
+ optdepends = imagemagick-doc: manual and API docs
+ provides = libmagick
+ provides = imagemagick=7.0.8.45
+ conflicts = imagemagick6
conflicts = imagemagick
- options = !docs
- options = libtool
+ replaces = imagemagick6
+ replaces = libmagick
options = !emptydirs
- backup = etc/ImageMagick-7/coder
- backup = etc/ImageMagick-7/colors
- backup = etc/ImageMagick-7/delegates
- backup = etc/ImageMagick-7/log
- backup = etc/ImageMagick-7/magic
- backup = etc/ImageMagick-7/mime
- backup = etc/ImageMagick-7/policy
- backup = etc/ImageMagick-7/thresholds
- backup = etc/ImageMagick-7/type
- backup = etc/ImageMagick-7/type-dejavu
- backup = etc/ImageMagick-7/type-ghostscript
- backup = etc/ImageMagick-7/type-windows
+ options = libtool
+ backup = etc/ImageMagick-7/colors.xml
+ backup = etc/ImageMagick-7/delegates.xml
+ backup = etc/ImageMagick-7/log.xml
+ backup = etc/ImageMagick-7/mime.xml
+ backup = etc/ImageMagick-7/policy.xml
+ backup = etc/ImageMagick-7/quantization-table.xml
+ backup = etc/ImageMagick-7/thresholds.xml
+ backup = etc/ImageMagick-7/type.xml
+ backup = etc/ImageMagick-7/type-dejavu.xml
+ backup = etc/ImageMagick-7/type-ghostscript.xml
pkgname = imagemagick-git-doc
- pkgdesc = The ImageMagick documentation (utilities manuals and libraries API)
+ pkgdesc = An image viewing/manipulation program (manual and API docs)
depends = imagemagick
provides = imagemagick-doc
conflicts = imagemagick-doc
diff --git a/PKGBUILD b/PKGBUILD
index fe21ff7652ad..4c6671c2cd60 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,6 +2,7 @@
# Contributor: Limao Luo <luolimao+AUR@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# From core package
+# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Eric BĂ©langer <eric@archlinux.org>
set -u
@@ -10,27 +11,30 @@ pkgbase="${_pkgname}-git"
#_srcdir="${pkgbase}"
_srcdir='ImageMagick'
pkgname=("${pkgbase}"{,-doc})
-pkgver=7.0.6.7.r12351.geaada474d
+pkgver=7.0.8.45.r15636.g909488f04
pkgrel=1
pkgdesc='An image viewing/manipulation program'
-arch=('i686' 'x86_64')
-url='http://www.imagemagick.org/script/'
-license=('custom')
-makedepends=('libltdl' 'lcms2' 'libxt' 'fontconfig' 'libxext' 'ghostscript'
- 'openexr' 'libwmf' 'librsvg' 'libxml2' 'liblqr' 'openjpeg2'
- 'opencl-headers' 'ocl-icd' 'libwebp' 'patch' 'git')
+arch=('x86_64')
+url="https://www.imagemagick.org/"
+license=(custom)
+makedepends=('ghostscript' 'openexr' 'libwmf' 'librsvg' 'libxml2' 'openjpeg2' 'libraw' 'opencl-headers' 'libwebp'
+ 'chrpath' 'ocl-icd' 'glu' 'ghostpcl' 'ghostxps' 'libheif' 'jbigkit' 'lcms2' 'libxext' 'liblqr' 'libraqm' 'libpng')
+#makedepends+=('libltdl' 'libxt' 'fontconfig')
+makedepends+=('patch' 'git')
+checkdepends=(gsfonts ttf-dejavu)
+_relname=ImageMagick-${pkgver%%.*}
_verwatch=("${url/script/download/}" 'ImageMagick-\([-0-9\.]\+\)\.tar\.bz2' 'l')
_archlink="@@@::https://projects.archlinux.org/svntogit/packages.git/plain/trunk/@@@?h=packages/${_pkgname}"
source=(
#"${_srcdir}::git+http://git.imagemagick.org/repos/ImageMagick.git"
"git+https://github.com/ImageMagick/ImageMagick.git"
- 'libpng_mmx_patch_x86_64.patch'
- "${_archlink//@@@/perlmagick.rpath.patch}"
+ "${_archlink//@@@/arch-fonts.diff}"
+ "${_archlink//@@@/IM7-GS-policy.patch}"
)
sha256sums=('SKIP'
- '4f3ab23349fd3958a88eb09a7107e08c2c6f3953287907103ec48cfa83575e87'
- '17218bbecc17f3c7a86935a09d5a47e46113a1fc28f7d91c2fe495019cc36088')
-#validpgpkeys=('D8272EF51DA223E4D05B466989AB63D48277377A')
+ 'a85b744c61b1b563743ecb7c7adad999d7ed9a8af816650e3ab9321b2b102e73'
+ 'f20c09860da65a4259ec9627ceeca7d993949b7460fa199c5ffd874633814cf6')
+#validpgpkeys=('D8272EF51DA223E4D05B466989AB63D48277377A') # Lexie Parsimoniae
pkgver() {
set -u
@@ -42,28 +46,53 @@ pkgver() {
prepare() {
set -u
- cd "${_srcdir}/"
- #[ "${CARCH}" = 'x86_64' ] && patch -p1 -i "${srcdir}/libpng_mmx_patch_x86_64.patch"
- sed -e '/AC_PATH_XTRA/d' -i 'configure.ac'
+ mkdir -p docpkg/usr/share
+
+ cd "${_srcdir}"
+
+ # Fix up typemaps to match our packages, where possible
+ patch -p1 -i ../arch-fonts.diff
+
+ # Work around ghostscript security issues https://bugs.archlinux.org/task/59778
+ patch -p1 -i ../IM7-GS-policy.patch
set +u
}
_configure() {
set -u
- cd "${_srcdir}/"
- if [ ! -s 'Makefile' ]; then
- autoreconf --force --install
- patch -p0 -i "${srcdir}/perlmagick.rpath.patch"
- declare -A _EXTRAOPTS=([i686]='i686' [x86_64]='x86-64')
- #./configure --prefix='/usr' --sysconfdir='/etc' --with-modules --disable-static --enable-openmp --with-x --with-wmf --with-openexr --with-xml --with-gslib --with-gs-font-dir='/usr/share/fonts/Type1' --with-perl --with-perl-options='INSTALLDIRS=vendor' --without-gvc --with-djvu --without-autotrace --with-jp2 --with-jbig --without-fpx --without-dps --without-fftw
- ./configure --prefix='/usr' --sysconfdir='/etc' --with-modules \
- --enable-hdri --with-wmf --with-openexr --with-xml --with-lcms2 \
- --with-webp --with-gslib --with-gs-font-dir='/usr/share/fonts/Type1' \
- --with-perl --with-perl-options='INSTALLDIRS=vendor' --with-lqr --with-rsvg \
- --enable-opencl --with-openjp2 --without-gvc --without-djvu --without-autotrace \
- --without-jbig --without-fpx --without-dps --without-fftw --with-gcc-arch="${_EXTRAOPTS[${CARCH}]}"
- sed -e 's: -mtune=x86-64 : :g' -i 'Makefile' # This works even though the screen still shows the flags
- fi
+ cd "${_srcdir}"
+if [ ! -s 'Makefile' ]; then
+ autoreconf --force --install
+ ./configure \
+ --prefix='/usr' \
+ --sysconfdir='/etc' \
+ --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 \
+ --with-gslib \
+ --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-djvu \
+ --without-dps \
+ --without-fftw \
+ --without-fpx \
+ --without-gcc-arch \
+ --without-gvc
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+fi
cd "${srcdir}"
set +u
}
@@ -71,67 +100,67 @@ _configure() {
build() {
_configure
set -u
- cd "${_srcdir}/"
+ cd "${_srcdir}"
local _nproc="$(nproc)"; _nproc=$((_nproc>8?8:_nproc))
nice make -s -j "${_nproc}"
set +u
}
-check() {
- cd "${_srcdir}/"
- #make -s -j1 check
+check_disabled() {
+ cd "${_srcdir}"
+ ulimit -n 4096
+ sed -e '/validate-formats/d' -i Makefile # these fail due to the security patch
+ make -s -j1 check
}
package_imagemagick-git() {
set -u
- pkgdesc='An image viewing/manipulation program'
- depends=('libltdl' 'lcms2' 'libxt' 'fontconfig' 'libxext' 'liblqr')
- optdepends=('imagemagick-doc: for additional information'
- 'ghostscript: for Ghostscript support'
- 'openexr: for OpenEXR support'
- 'openjpeg2: for JP2 support'
- 'libwmf: for WMF support'
- 'librsvg: for SVG support'
- 'libxml2: for XML support'
- 'libpng: for PNG support'
- 'libwebp: for WEBP support')
- backup=("etc/ImageMagick-${pkgver%%.*}"/{coder,colors,delegates,log,magic,mime,policy,thresholds,type{,-dejavu,-ghostscript,-windows}})
- #options=('libtool' '!emptydirs' '!makeflags')
- options=('!docs' 'libtool' '!emptydirs')
- provides=("${_pkgname}=${pkgver%.r*}")
- conflicts=("${_pkgname}")
+ depends=(libltdl lcms2 fontconfig libxext liblqr libraqm libpng libxml2)
+ optdepends=('ghostscript: PS/PDF support'
+ 'libheif: HEIF support'
+ 'libraw: DNG support'
+ 'librsvg: SVG support'
+ 'libwebp: WEBP support'
+ 'libwmf: WMF support'
+ 'libxml2: Magick Scripting Language'
+ 'ocl-icd: OpenCL support'
+ 'openexr: OpenEXR support'
+ 'openjpeg2: JPEG2000 support'
+ 'pango: Text rendering'
+ 'imagemagick-doc: manual and API docs')
+ options=(!emptydirs libtool)
+ backup=(etc/$_relname/{colors,delegates,log,mime,policy,quantization-table,thresholds,type,type-{dejavu,ghostscript}}.xml)
+ conflicts=(imagemagick6)
+ provides=(libmagick)
+ replaces=(imagemagick6 libmagick)
+ provides+=("${_pkgname}=${pkgver%.r*}")
+ conflicts+=("${_pkgname}")
- cd "${_srcdir}/"
+ cd "${_srcdir}"
make -s -j1 DESTDIR="${pkgdir}" install
- #install -d "${pkgdir}/usr/share/licenses/${_pkgname}/"
- install -Dpm644 'LICENSE' 'NOTICE' -t "${pkgdir}/usr/share/licenses/${_pkgname}/"
- #Cleaning. Why are we deleting a file that says DO NOT DELETE?
- #rm -f "${pkgdir}/usr/lib"/*.la
- #rm -rf "${pkgdir}/usr/share/doc/" # same as option !docs
-
- # This looks dangerous. Upgrading perl will remove ImageMagick
- if ! :; then
- # template start; name=perl-binary-module-dependency; version=1;
- if [ ! -z "$(find "${pkgdir}/usr/lib/perl5/" -name '*.so')" ]; then
- local _perlver_min="$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')"
- local _perlver_max="$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')"
- eval 'dep''ends+=("perl>=${_perlver_min}" "perl<${_perlver_max}")' # keep mksrcinfo from reading this
- fi
- # template end;
- fi
+
+ 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
+
+# Split docs
+ mv "${pkgdir}/usr/share/doc" "${srcdir}/docpkg/usr/share/"
set +u
}
package_imagemagick-git-doc() {
set -u
- pkgdesc='The ImageMagick documentation (utilities manuals and libraries API)'
+ pkgdesc+=" (manual and API docs)"
provides=("${_pkgname}-doc")
conflicts=("${_pkgname}-doc")
depends=("${_pkgname}")
- cd "${_srcdir}/"
- make -s DESTDIR="${pkgdir}" install-data-html
- install -Dpm644 'LICENSE' 'NOTICE' -t "${pkgdir}/usr/share/licenses/${_pkgname}-doc/"
+ mv docpkg/* "${pkgdir}"
+
+ cd "${_srcdir}"
+ install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 LICENSE NOTICE
set +u
}
set +u
diff --git a/libpng_mmx_patch_x86_64.patch b/libpng_mmx_patch_x86_64.patch
deleted file mode 100644
index addfd5637e8f..000000000000
--- a/libpng_mmx_patch_x86_64.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/coders/png.c 2012-12-10 18:19:07.149721232 -0500
-+++ b/coders/png.c 2012-12-10 18:24:17.442782178 -0500
-@@ -631,6 +631,8 @@
- #define PNG_UINT_31_MAX (png_uint_32) 0x7fffffffL
- #endif
-
-+#undef PNG_ASSEMBLER_CODE_SUPPORTED
-+
- /*
- Constant strings for known chunk types. If you need to add a chunk,
- add a string holding the name here. To make the code more