summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD17
-rw-r--r--fix-build.patch12
3 files changed, 31 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 725684f89e1..590b1db6708 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = dmagick
pkgdesc = D wrapper for ImageMagick
- pkgver = 6.9.0
+ pkgver = 6.9.1
pkgrel = 1
url = https://github.com/MikeWey/DMagick
arch = i686
@@ -9,8 +9,10 @@ pkgbase = dmagick
depends = dmd
depends = dtools
depends = imagemagick
- source = https://github.com/MikeWey/DMagick/archive/ImageMagick_6.9.0.tar.gz
- md5sums = 31e73ba27cb4505e76d4a67fcef56e5f
+ source = https://github.com/MikeWey/DMagick/archive/ImageMagick_6.9.1.tar.gz
+ source = fix-build.patch
+ md5sums = be793d786e8cc594871b8e2792bf4a73
+ md5sums = fd3a86e7acbea6d9a19bfb3ac071da25
pkgname = dmagick
diff --git a/PKGBUILD b/PKGBUILD
index 4952cc66091..5fee632c604 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,25 @@
# Maintainer: Maxime Poulin <maxpoulin64@gmail.com>
pkgname=dmagick
-pkgver=6.9.0
+pkgver=6.9.1
pkgrel=1
pkgdesc="D wrapper for ImageMagick"
arch=("i686" "x86_64")
url="https://github.com/MikeWey/DMagick"
license=('unknown')
depends=("dmd" "dtools" "imagemagick")
-source=("https://github.com/MikeWey/DMagick/archive/ImageMagick_$pkgver.tar.gz")
-md5sums=("31e73ba27cb4505e76d4a67fcef56e5f")
+source=(
+ "https://github.com/MikeWey/DMagick/archive/ImageMagick_$pkgver.tar.gz"
+ "fix-build.patch"
+)
+md5sums=(
+ "be793d786e8cc594871b8e2792bf4a73"
+ "fd3a86e7acbea6d9a19bfb3ac071da25"
+)
+
+prepare() {
+ cd "DMagick-ImageMagick_$pkgver"
+ patch -Np1 -i ../fix-build.patch
+}
build() {
cd "DMagick-ImageMagick_$pkgver"
diff --git a/fix-build.patch b/fix-build.patch
new file mode 100644
index 00000000000..91d30b14000
--- /dev/null
+++ b/fix-build.patch
@@ -0,0 +1,12 @@
+diff -aur DMagick-ImageMagick_6.9.1/dmagick/DrawingContext.d fix/dmagick/DrawingContext.d
+--- DMagick-ImageMagick_6.9.1/dmagick/DrawingContext.d 2015-05-09 09:46:51.000000000 -0400
++++ fix/dmagick/DrawingContext.d 2015-10-12 16:42:49.638222683 -0400
+@@ -1012,7 +1012,7 @@
+
+ do
+ {
+- filename = buildPath(tempPath, "DMagick."~to!(string)(Clock.currTime().stdTime));
++ filename = buildPath(tempPath, "DMagick."~std.conv.to!(string)(Clock.currTime().stdTime));
+
+ if ( image.magick !is null && toLower(image.magick) != "canvas" )
+ filename ~= "."~image.magick;