From 2d3ed17c564bd5516dff73daee9c8290660b8dc6 Mon Sep 17 00:00:00 2001
From: "Wilson E. Alvarez" <wilson.e.alvarez1@gmail.com>
Date: Mon, 13 Aug 2018 16:10:41 -0400
Subject: [PATCH] Disabled Allegro4 alias fix

---
 .SRCINFO | 2 +-
 PKGBUILD | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index e9b0c98..8ba0d67 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = aseprite
 	pkgdesc = Create animated sprites and pixel art
 	pkgver = 1.2.9
-	pkgrel = 1
+	pkgrel = 2
 	url = http://www.aseprite.org/
 	arch = x86_64
 	arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 2cc931b..c251d30 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,8 +5,7 @@
 
 pkgname=aseprite
 pkgver=1.2.9
-_realver=.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Create animated sprites and pixel art'
 arch=('x86_64' 'i686')
 url="http://www.aseprite.org/"
@@ -31,6 +30,9 @@ build() {
     [ "$reply" == "yes" ] || exit 1
   fi
 
+  # Disable Allegro4 alias fix which creates a function declaration conflict:
+  sed -e 's/DUSE_ALLEG4_BACKEND/DUSE_ALLEG4_BACKEND -DALLEGRO_NO_FIX_ALIASES/g' -i CMakeLists.txt
+
   mkdir -p build && cd build
 
   # CMake config notes:
@@ -40,10 +42,8 @@ build() {
   # disabled since there's no guarantee Arch users might have allegro4
   # installed.
 
-
   cmake -DUSE_SHARED_PIXMAN=ON \
     -DWITH_WEBP_SUPPORT=ON \
-    -DUSE_SHARED_LIBWEBP=ON \
     -DUSE_SHARED_CURL=ON \
     -DUSE_SHARED_GIFLIB=ON \
     -DUSE_SHARED_JPEGLIB=ON \