summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorspider-mario2019-01-13 11:26:15 +0100
committerspider-mario2019-01-13 11:26:15 +0100
commit4bcae96e764279c5d366cb5b9d819459611ac69a (patch)
treea24d130ba34d51c225d138d3ba4c5dd94e48fc8c
parentdfad4f465f960cb531165359f5040edbef6a7941 (diff)
downloadaur-4bcae96e764279c5d366cb5b9d819459611ac69a.tar.gz
Fix include path
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD11
-rw-r--r--include.patch17
3 files changed, 28 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 19c42d254c8..5e14b51302f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -9,7 +9,9 @@ pkgbase = qt-flif-plugin
makedepends = qt5-base
depends = flif
source = git+https://github.com/spillerrec/qt-flif-plugin.git#commit=9272881133c48d55d44e8a08cdafecff3f37315c
+ source = include.patch
sha512sums = SKIP
+ sha512sums = 891e787f65738c47ae788b5ca7fe15fe056b911f77dbe6d741c4c7b0a25dd2cda5ba0e6b22d1ff534912cf0deb670d6403a02d2dc6a3a3f3e0a0e898d974d23f
pkgname = qt4-flif
pkgdesc = Enables FLIF support in Qt4 applications
diff --git a/PKGBUILD b/PKGBUILD
index fb0d67cf30d..33f1c894b87 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,8 +9,15 @@ url="https://github.com/spillerrec/qt-flif-plugin"
license=('GPL')
depends=('flif')
makedepends=('qt4' 'qt5-base')
-source=('git+https://github.com/spillerrec/qt-flif-plugin.git#commit=9272881133c48d55d44e8a08cdafecff3f37315c')
-sha512sums=('SKIP')
+source=('git+https://github.com/spillerrec/qt-flif-plugin.git#commit=9272881133c48d55d44e8a08cdafecff3f37315c'
+ 'include.patch')
+sha512sums=('SKIP'
+ '891e787f65738c47ae788b5ca7fe15fe056b911f77dbe6d741c4c7b0a25dd2cda5ba0e6b22d1ff534912cf0deb670d6403a02d2dc6a3a3f3e0a0e898d974d23f')
+
+prepare() {
+ cd "$srcdir/$pkgbase"
+ git apply -3 "$srcdir"/include.patch
+}
build() {
mkdir -p build-qt4 build-qt5
diff --git a/include.patch b/include.patch
new file mode 100644
index 00000000000..20274ec59b9
--- /dev/null
+++ b/include.patch
@@ -0,0 +1,17 @@
+diff --git a/src/Flif++.hpp b/src/Flif++.hpp
+index b719e2a..5505077 100644
+--- a/src/Flif++.hpp
++++ b/src/Flif++.hpp
+@@ -19,9 +19,9 @@
+ #define FLIFPP_HPP
+
+ #include <memory>
+-#include <FLIF/flif.h>
+-#include <FLIF/flif_dec.h>
+-#include <FLIF/flif_enc.h>
++#include <flif.h>
++#include <flif_dec.h>
++#include <flif_enc.h>
+
+ class FlifImage{
+ public: //TODO: fix