summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Doege2016-07-03 22:39:40 +0200
committerMartin Doege2016-07-03 22:39:40 +0200
commit8f517514a1f522801dcca83d0dc7b3838b83e769 (patch)
treebd3f24c65e06170dcb0fc01b5caff08f04c73bc0
parentf1f52f59e3e9a3b6b37624d567a8e092fcc293e7 (diff)
downloadaur-8f517514a1f522801dcca83d0dc7b3838b83e769.tar.gz
fix GCC 6 compilation issue
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD13
-rw-r--r--src.pri.in9
3 files changed, 23 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fd0457a7a73..7abeb9906b0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Sat Jul 2 23:01:04 UTC 2016
+# Sun Jul 3 20:36:46 UTC 2016
pkgbase = qsampler
pkgdesc = LinuxSampler Qt GUI
pkgver = 0.4.0
- pkgrel = 2
+ pkgrel = 3
url = http://qsampler.sourceforge.net/
arch = i686
arch = x86_64
@@ -14,7 +14,9 @@ pkgbase = qsampler
depends = linuxsampler
depends = liblscp
source = http://downloads.sourceforge.net/qsampler/qsampler-0.4.0.tar.gz
+ source = src.pri.in
md5sums = 02a39ca85bf13a18646ff80161949e2e
+ md5sums = 243e881003421667f7f7e09b857c55fb
pkgname = qsampler
diff --git a/PKGBUILD b/PKGBUILD
index 51063b05878..6df6e57bce1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,14 +4,18 @@
pkgname=qsampler
pkgver=0.4.0
-pkgrel=2
+pkgrel=3
pkgdesc="LinuxSampler Qt GUI"
arch=('i686' 'x86_64')
url="http://qsampler.sourceforge.net/"
license=('GPL')
depends=('qt5-base' 'qt5-tools' 'qt5-x11extras' 'linuxsampler' 'liblscp')
-source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
-md5sums=('02a39ca85bf13a18646ff80161949e2e')
+source=(
+"http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+src.pri.in
+)
+md5sums=('02a39ca85bf13a18646ff80161949e2e'
+ '243e881003421667f7f7e09b857c55fb')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
@@ -22,6 +26,9 @@ prepare() {
build() {
cd "$srcdir/$pkgname-$pkgver"
+ # GCC6 fix from https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/4FY6F7ALADJCG2QYDTFP3UXGKSL7GED6/
+ cp "$srcdir/src.pri.in" src
+
./configure --prefix=/usr
make
}
diff --git a/src.pri.in b/src.pri.in
new file mode 100644
index 00000000000..aefb3d240ea
--- /dev/null
+++ b/src.pri.in
@@ -0,0 +1,9 @@
+# qsampler.pri
+#
+PREFIX = @ac_prefix@
+CONFIG += @ac_debug@
+LIBS += @ac_libs@
+
+# Extra optimization flags
+QMAKE_CXXFLAGS += @ac_cflags@
+QMAKE_LFLAGS += @ac_ldflags@