summaryrefslogtreecommitdiff
path: root/community/gluon
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-06-23 09:21:32 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-06-23 09:21:32 +0200
commitf03e691131fe8165e9aabb845f97cee512d31afd (patch)
treea7dfdd4e884fe9552623b5756060b4bdf4e6ce8b /community/gluon
parent35975ee7f776a831086f2b736a72f87779356a8e (diff)
parent11357a5ab02a7d536375fb8333b2fb67278b4a36 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Diffstat (limited to 'community/gluon')
-rw-r--r--community/gluon/PKGBUILD30
-rw-r--r--community/gluon/gcc47.patch31
2 files changed, 48 insertions, 13 deletions
diff --git a/community/gluon/PKGBUILD b/community/gluon/PKGBUILD
index 6668ed55e..78b666d40 100644
--- a/community/gluon/PKGBUILD
+++ b/community/gluon/PKGBUILD
@@ -1,33 +1,37 @@
-# $Id: PKGBUILD 61254 2011-12-26 12:01:45Z andrea $
+# $Id: PKGBUILD 72719 2012-06-21 07:09:44Z andrea $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>
pkgname=gluon
pkgver=0.71.0
_pkgver=0.71
-pkgrel=3
+pkgrel=4
pkgdesc="A free and open source platform for creating and distributing games"
arch=('i686' 'x86_64' 'mips64el')
url="http://gluon.gamingfreedom.org/"
license=('LGPL')
-depends=('qt' 'kdebase-runtime' 'libsndfile' 'openal' 'alure' 'attica')
+depends=('kdelibs' 'libsndfile' 'alure')
makedepends=('cmake' 'automoc4' 'mesa' 'kdevplatform')
install=gluon.install
-source=("http://download.kde.org/download.php?url=unstable/$pkgname/$_pkgver/src/$pkgname-$pkgver.tar.gz")
-md5sums=('e4f284c0ae00e5b8a58cc3e6201857fe')
+source=("http://download.kde.org/unstable/$pkgname/$_pkgver/src/$pkgname-$pkgver.tar.gz"
+ 'gcc47.patch')
+md5sums=('e4f284c0ae00e5b8a58cc3e6201857fe'
+ '92adbf8b23f4af2a15a005b031c81c5f')
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -p1 -i "$srcdir"/gcc47.patch
- [[ -d build ]] && rm -rf build
- mkdir build && cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+ cd "$srcdir"
+ mkdir build
+ cd build
+ cmake ../$pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
make
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
-
- cd build
- make DESTDIR="$pkgdir/" install
+ cd "$srcdir"/build
+ make DESTDIR="$pkgdir" install
}
diff --git a/community/gluon/gcc47.patch b/community/gluon/gcc47.patch
new file mode 100644
index 000000000..1f2a22306
--- /dev/null
+++ b/community/gluon/gcc47.patch
@@ -0,0 +1,31 @@
+From: Christoph Feck <christoph@maxiom.de>
+Date: Fri, 23 Mar 2012 22:35:09 +0000
+Subject: Fix includes
+X-Git-Url: http://quickgit.kde.org/?p=gluon.git&amp;a=commitdiff&amp;h=bccbda88a6bc53ac20091bb6aefd2f1b501ba31a
+---
+Fix includes
+---
+
+
+--- a/input/linux/detectlinux.cpp
++++ b/input/linux/detectlinux.cpp
+@@ -26,6 +26,7 @@
+
+ #include <QtCore/QDir>
+
++#include <unistd.h>
+ // #include <libudev.h>
+
+ using namespace GluonInput;
+
+--- a/input/linux/inputthread.cpp
++++ b/input/linux/inputthread.cpp
+@@ -30,6 +30,7 @@
+ // #include <QtCore/QStringList>
+
+ #include <fcntl.h>
++#include <unistd.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <linux/input.h>
+