From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/gluon/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ community/gluon/gcc47.patch | 31 +++++++++++++++++++++++++++++++ community/gluon/gluon.install | 15 +++++++++++++++ 3 files changed, 88 insertions(+) create mode 100644 community/gluon/PKGBUILD create mode 100644 community/gluon/gcc47.patch create mode 100644 community/gluon/gluon.install (limited to 'community/gluon') diff --git a/community/gluon/PKGBUILD b/community/gluon/PKGBUILD new file mode 100644 index 000000000..3401f6081 --- /dev/null +++ b/community/gluon/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 85350 2013-03-01 10:31:40Z andrea $ +# Maintainer: Sven-Hendrik Haase +# Contributor: Ivan Sichmann Freitas + +pkgname=gluon +pkgver=0.71.0 +_pkgver=0.71 +pkgrel=5 +pkgdesc="A free and open source platform for creating and distributing games" +arch=('i686' 'x86_64') +url="http://gluon.gamingfreedom.org/" +license=('LGPL') +depends=('kdelibs' 'libsndfile' 'alure') +makedepends=('cmake' 'automoc4' 'mesa' 'kdevplatform') +install=gluon.install +source=("http://download.kde.org/unstable/$pkgname/$_pkgver/src/$pkgname-$pkgver.tar.gz" + 'gcc47.patch') +md5sums=('e4f284c0ae00e5b8a58cc3e6201857fe' + '92adbf8b23f4af2a15a005b031c81c5f') + +build() { + cd "$srcdir"/$pkgname-$pkgver + patch -p1 -i "$srcdir"/gcc47.patch + + cd "$srcdir" + mkdir build + cd build + cmake ../$pkgname-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON + make +} + +package() { + cd "$srcdir"/build + make DESTDIR="$pkgdir" install + + if [[ "$CARCH" == "x86_64" ]]; then + mv "${pkgdir}"/usr/lib64 "${pkgdir}"/usr/lib + fi +} 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 +Date: Fri, 23 Mar 2012 22:35:09 +0000 +Subject: Fix includes +X-Git-Url: http://quickgit.kde.org/?p=gluon.git&a=commitdiff&h=bccbda88a6bc53ac20091bb6aefd2f1b501ba31a +--- +Fix includes +--- + + +--- a/input/linux/detectlinux.cpp ++++ b/input/linux/detectlinux.cpp +@@ -26,6 +26,7 @@ + + #include + ++#include + // #include + + using namespace GluonInput; + +--- a/input/linux/inputthread.cpp ++++ b/input/linux/inputthread.cpp +@@ -30,6 +30,7 @@ + // #include + + #include ++#include + #include + #include + #include + diff --git a/community/gluon/gluon.install b/community/gluon/gluon.install new file mode 100644 index 000000000..bf97c58a3 --- /dev/null +++ b/community/gluon/gluon.install @@ -0,0 +1,15 @@ +post_install() { + update-desktop-database -q + xdg-icon-resource forceupdate --theme hicolor + update-mime-database usr/share/mime > /dev/null +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + update-desktop-database -q + xdg-icon-resource forceupdate --theme hicolor + update-mime-database usr/share/mime > /dev/null +} -- cgit v1.2.3-54-g00ecf