summaryrefslogtreecommitdiff
path: root/community/gluon
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-04-27 22:24:53 +0000
committerroot <root@rshg047.dnsready.net>2011-04-27 22:24:53 +0000
commit18d6577d511b9a1ac36eaae50060133a401e42a3 (patch)
treef681f9444a7a0a95916de40af82d3b805d5fb8d3 /community/gluon
parent69e1fada8bdc9588d0a3d8bc3403fa809d809a84 (diff)
Wed Apr 27 22:24:53 UTC 2011
Diffstat (limited to 'community/gluon')
-rw-r--r--community/gluon/PKGBUILD32
-rw-r--r--community/gluon/gluon.install15
2 files changed, 47 insertions, 0 deletions
diff --git a/community/gluon/PKGBUILD b/community/gluon/PKGBUILD
new file mode 100644
index 000000000..88aaacd92
--- /dev/null
+++ b/community/gluon/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>
+
+pkgname=gluon
+pkgver=0.71.0
+_pkgver=0.71
+pkgrel=2
+pkgdesc="A free and open source platform for creating and distributing games"
+arch=('i686' 'x86_64')
+url="http://gluon.gamingfreedom.org/"
+license=('LGPL')
+depends=('qt' 'kdebase-runtime' 'libsndfile' 'openal' 'alure' 'attica')
+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')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ [[ -d build ]] && rm -rf build
+ mkdir build && cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ cd build
+ make DESTDIR="$pkgdir/" install
+}
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
+}