Skip to content

Instantly share code, notes, and snippets.

@oconnor663
Created September 9, 2013 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oconnor663/6501289 to your computer and use it in GitHub Desktop.
Save oconnor663/6501289 to your computer and use it in GitHub Desktop.
imagemagick PKGBUILD changes for compatibility with rmagick
diff --git a/PKGBUILD.old b/PKGBUILD
index 3fd9a4a..ab2a25d 100644
--- a/PKGBUILD.old
+++ b/PKGBUILD
@@ -27,7 +27,7 @@ prepare() {
build() {
cd ImageMagick-${pkgver%.*}-${pkgver##*.}
./configure --prefix=/usr --sysconfdir=/etc --with-modules --disable-static \
- --enable-hdri --with-wmf --with-openexr --with-xml --with-lcms2 --with-jp2 \
+ --with-wmf --with-openexr --with-xml --with-lcms2 --with-jp2 \
--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 --without-gvc --without-djvu --without-autotrace \
@@ -71,6 +71,12 @@ package_imagemagick() {
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/imagemagick/LICENSE"
install -Dm644 NOTICE "${pkgdir}/usr/share/licenses/imagemagick/NOTICE"
+ # Symlinks for compatibility
+ cd "${pkgdir}"/usr/lib/
+ ln -s libMagick++-6.Q16.so libMagick++.so
+ ln -s libMagickCore-6.Q16.so libMagickCore.so
+ ln -s libMagickWand-6.Q16.so libMagickWand.so
+
#Cleaning
rm -f "${pkgdir}"/usr/lib/*.la
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment