summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bermond2019-05-19 15:19:43 +0000
committerDaniel Bermond2019-05-19 15:19:43 +0000
commit5d1c0eb1618eccba4c8f8e1b012cb21881e387ca (patch)
tree5de3de56290e3d6fb435a258745ee36e8e32d294
parenta7af61f601f0f966811a189df85228aa70b3441b (diff)
downloadaur-5d1c0eb1618eccba4c8f8e1b012cb21881e387ca.tar.gz
Unsplit libmagick to follow repository package
References ---------- https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/imagemagick&id=a2a9f312e2505bd9cc7d3865123e988676d7809d
-rw-r--r--.SRCINFO77
-rw-r--r--PKGBUILD65
2 files changed, 77 insertions, 65 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 238cbaba77c2..0a5d4b9b6cd0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = imagemagick-full
pkgdesc = An image viewing/manipulation program (Q32 HDRI with all libs and features)
pkgver = 7.0.8.42
- pkgrel = 1
+ pkgrel = 2
url = https://www.imagemagick.org/
arch = i686
arch = x86_64
@@ -15,6 +15,53 @@ pkgbase = imagemagick-full
makedepends = ghostxps
makedepends = zstd
makedepends = chrpath
+ makedepends = lcms2
+ makedepends = libraqm
+ makedepends = liblqr
+ makedepends = fftw
+ makedepends = libxml2
+ makedepends = fontconfig
+ makedepends = freetype2
+ makedepends = libxext
+ makedepends = libx11
+ makedepends = bzip2
+ makedepends = zlib
+ makedepends = libltdl
+ makedepends = jemalloc
+ makedepends = djvulibre
+ makedepends = libraw
+ makedepends = graphviz
+ makedepends = openexr
+ makedepends = libheif
+ makedepends = openjpeg2
+ makedepends = libjpeg-turbo
+ makedepends = xz
+ makedepends = glib2
+ makedepends = pango
+ makedepends = cairo
+ makedepends = libpng
+ makedepends = ghostscript
+ makedepends = ming
+ makedepends = librsvg
+ makedepends = libtiff
+ makedepends = libwebp
+ makedepends = libwmf
+ makedepends = ocl-icd
+ makedepends = gsfonts
+ makedepends = ttf-dejavu
+ makedepends = pstoedit-nomagick
+ makedepends = autotrace-nomagick
+ makedepends = flif
+ makedepends = libfpx
+ makedepends = libumem-git
+ source = git+https://github.com/ImageMagick/ImageMagick.git#commit=9a529b2171ab1d64748c3385b0c2c4702808983d
+ source = imagemagick-full-security-fix.patch
+ source = arch-fonts.diff
+ sha256sums = SKIP
+ sha256sums = e2453381d283c33107194fa791d6b9b2c4c1856afb936d4fa010c05aaebe538e
+ sha256sums = a85b744c61b1b563743ecb7c7adad999d7ed9a8af816650e3ab9321b2b102e73
+
+pkgname = imagemagick-full
depends = lcms2
depends = libraqm
depends = liblqr
@@ -49,26 +96,19 @@ pkgbase = imagemagick-full
depends = ocl-icd
depends = gsfonts
depends = ttf-dejavu
+ depends = perl
depends = pstoedit-nomagick
depends = autotrace-nomagick
depends = flif
depends = libfpx
depends = libumem-git
- source = git+https://github.com/ImageMagick/ImageMagick.git#commit=9a529b2171ab1d64748c3385b0c2c4702808983d
- source = imagemagick-full-security-fix.patch
- source = arch-fonts.diff
- sha256sums = SKIP
- sha256sums = e2453381d283c33107194fa791d6b9b2c4c1856afb936d4fa010c05aaebe538e
- sha256sums = a85b744c61b1b563743ecb7c7adad999d7ed9a8af816650e3ab9321b2b102e73
-
-pkgname = libmagick-full
- pkgdesc = An image viewing/manipulation program (Q32 HDRI with all libs and features) (library)
- optdepends = ttf-mac-fonts: for Apple fonts support
+ optdepends = imagemagick-full-doc: manual and API docs
+ provides = imagemagick=7.0.8.42
provides = libmagick=7.0.8.42
- provides = libMagickCore-7.Q32HDRI.so
- provides = libMagickWand-7.Q32HDRI.so
- provides = libMagick++-7.Q32HDRI.so
+ provides = libmagick-full=7.0.8.42
+ conflicts = imagemagick
conflicts = libmagick
+ replaces = libmagick-full
options = !emptydirs
options = libtool
backup = etc//colors.xml
@@ -82,18 +122,9 @@ pkgname = libmagick-full
backup = etc//type-dejavu.xml
backup = etc//type-ghostscript.xml
-pkgname = imagemagick-full
- depends = libmagick-full=7.0.8.42-1
- depends = perl
- optdepends = imagemagick-full-doc: manual and API docs
- provides = imagemagick=7.0.8.42
- conflicts = imagemagick
- options = !emptydirs
-
pkgname = imagemagick-full-doc
pkgdesc = An image viewing/manipulation program (Q32 HDRI with all libs and features) (manual and API docs)
arch = any
- depends =
provides = imagemagick-doc=7.0.8.42
conflicts = imagemagick-doc
diff --git a/PKGBUILD b/PKGBUILD
index 4d2e2db4ce82..faf45dc976c4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,16 +14,18 @@ _commit='9a529b2171ab1d64748c3385b0c2c4702808983d'
_qdepth='32'
pkgbase=imagemagick-full
-pkgname=('libmagick-full' 'imagemagick-full' 'imagemagick-full-doc')
+pkgname=('imagemagick-full' 'imagemagick-full-doc')
_srcname=ImageMagick
pkgver=7.0.8.42
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
pkgdesc="An image viewing/manipulation program (Q${_qdepth} HDRI with all libs and features)"
url='https://www.imagemagick.org/'
license=('custom')
-depends=(
+makedepends=(
# official repositories:
+ 'git' 'perl' 'jbigkit' 'opencl-headers' 'glu' 'ghostpcl' 'ghostxps'
+ 'zstd' 'chrpath'
'lcms2' 'libraqm' 'liblqr' 'fftw' 'libxml2' 'fontconfig' 'freetype2' 'libxext'
'libx11' 'bzip2' 'zlib' 'libltdl' 'jemalloc' 'djvulibre' 'libraw' 'graphviz'
'openexr' 'libheif' 'openjpeg2' 'libjpeg-turbo' 'xz' 'glib2' 'pango' 'cairo'
@@ -32,8 +34,6 @@ depends=(
# AUR:
'pstoedit-nomagick' 'autotrace-nomagick' 'flif' 'libfpx' 'libumem-git'
)
-makedepends=('git' 'perl' 'jbigkit' 'opencl-headers' 'glu' 'ghostpcl' 'ghostxps'
- 'zstd' 'chrpath')
source=("git+https://github.com/ImageMagick/ImageMagick.git#commit=${_commit}"
'imagemagick-full-security-fix.patch'
'arch-fonts.diff')
@@ -44,6 +44,8 @@ sha256sums=('SKIP'
prepare() {
cd "$_srcname"
+ mkdir -p docpkg/usr/share
+
# 1) workaround for ghostscript security issues:
# https://bugs.archlinux.org/task/59778
# 2) security fix:
@@ -137,58 +139,38 @@ check() (
make check
)
-package_libmagick-full() {
+package_imagemagick-full() {
local _majorver="${pkgver%%.*}"
local _etcdir="ImageMagick-${_majorver}"
- pkgdesc+=' (library)'
+ depends=(
+ # official repositories:
+ 'lcms2' 'libraqm' 'liblqr' 'fftw' 'libxml2' 'fontconfig' 'freetype2' 'libxext'
+ 'libx11' 'bzip2' 'zlib' 'libltdl' 'jemalloc' 'djvulibre' 'libraw' 'graphviz'
+ 'openexr' 'libheif' 'openjpeg2' 'libjpeg-turbo' 'xz' 'glib2' 'pango' 'cairo'
+ 'libpng' 'ghostscript' 'ming' 'librsvg' 'libtiff' 'libwebp' 'libwmf' 'ocl-icd'
+ 'gsfonts' 'ttf-dejavu' 'perl'
+ # AUR:
+ 'pstoedit-nomagick' 'autotrace-nomagick' 'flif' 'libfpx' 'libumem-git'
+ )
optdepends=(
# AUR:
- 'ttf-mac-fonts: for Apple fonts support'
+ 'imagemagick-full-doc: manual and API docs'
)
backup=(etc/"$_etcdir"/{colors,delegates,log,mime,policy,quantization-table,thresholds,type,type-{dejavu,ghostscript}}.xml)
options=('!emptydirs' 'libtool')
- provides=("libmagick=${pkgver}"
- "libMagickCore-${pkgver%%.*}.Q${_qdepth}HDRI.so"
- "libMagickWand-${pkgver%%.*}.Q${_qdepth}HDRI.so"
- "libMagick++-${pkgver%%.*}.Q${_qdepth}HDRI.so")
- conflicts=('libmagick')
+ provides=("imagemagick=${pkgver}" "libmagick=${pkgver}" "libmagick-full=${pkgver}")
+ conflicts=('imagemagick' 'libmagick')
+ replaces=('libmagick-full')
cd "$_srcname"
make DESTDIR="$pkgdir" install
+ find "${pkgdir}/usr/lib/perl5" -name '*.so' -exec chrpath -d {} +
rm "$pkgdir"/usr/lib/*.la
- install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
- install -D -m644 NOTICE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-
- rm -rf binpkg/* docpkg/*
- mkdir -p binpkg/usr/lib {binpkg,docpkg}/usr/share
-
- # split 'imagemagick'
- mv "${pkgdir}/usr/bin" binpkg/usr/
- mv "${pkgdir}/usr/lib/perl5" binpkg/usr/lib/
- mv "${pkgdir}/usr/share/man" binpkg/usr/share/
-
# split docs
mv "${pkgdir}/usr/share/doc" docpkg/usr/share/
-}
-
-package_imagemagick-full() {
- depends=("libmagick-full=${pkgver}-${pkgrel}" 'perl')
- optdepends=(
- # AUR:
- 'imagemagick-full-doc: manual and API docs'
- )
- provides=("imagemagick=${pkgver}")
- conflicts=('imagemagick')
- options=('!emptydirs')
-
- cd "$_srcname"
-
- cp -a binpkg/* "$pkgdir"
-
- find "${pkgdir}/usr/lib/perl5" -name '*.so' -exec chrpath -d {} +
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -D -m644 NOTICE -t "${pkgdir}/usr/share/licenses/${pkgname}"
@@ -197,7 +179,6 @@ package_imagemagick-full() {
package_imagemagick-full-doc() {
pkgdesc+=' (manual and API docs)'
arch=('any')
- depends=()
provides=("imagemagick-doc=${pkgver}")
conflicts=('imagemagick-doc')