index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-09-01 15:40:04 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-09-01 15:40:04 +0200 |
commit | 6172c0386e70e42268e3e60eb07d5478a5d8fdee (patch) | |
tree | 984837ca310dbf01246e179b9276240e06074d21 /extra | |
parent | 1b2b400af7cef3cee29e7fd77f22cef52e475970 (diff) |
-rw-r--r-- | extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch | 17 | ||||
-rw-r--r-- | extra/imagemagick6/PKGBUILD | 11 |
diff --git a/extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch b/extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch new file mode 100644 index 00000000..57e22254 --- /dev/null +++ b/extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch @@ -0,0 +1,17 @@ +diff -rauN ImageMagick-6.9.10-11/Magick++/lib/Magick++/Color.h ImageMagick-6.9.10-11-bug17-patch/Magick++/lib/Magick++/Color.h +--- ImageMagick-6.9.10-11/Magick++/lib/Magick++/Color.h 2018-08-28 14:31:12.000000000 +0200 ++++ ImageMagick-6.9.10-11-bug17-patch/Magick++/lib/Magick++/Color.h 2018-09-01 15:14:05.133038562 +0200 +@@ -122,11 +122,12 @@ + { + return (static_cast<double>(quantum_)/QuantumRange); + } +-#endif ++#else + static double scaleQuantumToDouble(const double quantum_) + { + return (quantum_/QuantumRange); + } ++#endif + + protected: + diff --git a/extra/imagemagick6/PKGBUILD b/extra/imagemagick6/PKGBUILD new file mode 100644 index 00000000..c16dae59 --- /dev/null +++ b/extra/imagemagick6/PKGBUILD @@ -0,0 +1,11 @@ +# see https://github.com/ImageMagick/ImageMagick6/issues/17 + +source+=('ImageMagick-6.9.10-11-bug17.patch') +sha256sums+=('59592dba2feebf4457e0d79e95bd212f41a6e6bbec0ed7d3aaf43328047e9c96') + +eval "$( + declare -f prepare | \ + sed ' + /patch/ a patch -Np1 -i ../ImageMagick-6.9.10-11-bug17.patch + ' +)" |