desktop/gluon/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) 4d9829de2b Rebuilt Gluon against OpenAL 1.14 and Alure 1.2.
Added an upstream patch in order to get Gluon to built with GCC 4.7.
2012-08-18 13:01:56 +00:00

52 lines
1.4 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=gluon
pkgver=0.71.0
_pkgver=0.71
pkgrel=6
pkgdesc="A high-level game development library for the KDE desktop enviornment."
arch=('i686' 'x86_64')
url="http://gluon.gamingfreedom.org/"
license=('GPL')
depends=('glew' 'kdelibs' 'libsndfile' 'openal' 'alure')
makedepends=('git' 'eigen' 'cmake' 'automoc4')
provides=('gluon')
conflicts=('gluon')
groups=("kde-uninstall" "kde-support")
source=("http://download.kde.org/download.php?url=unstable/$pkgname/$_pkgver/src/$pkgname-$pkgver.tar.gz"
"$pkgname-0.71-gcc-4.7.patch::https://projects.kde.org/projects/playground/games/gluon/repository/revisions/bccbda88a6bc53ac20091bb6aefd2f1b501ba31a/diff.diff")
md5sums=('e4f284c0ae00e5b8a58cc3e6201857fe'
'cf8c201b6d289ea63f0458eaefc526b2')
install=gluon.install
build() {
cd "$srcdir/$pkgname-$pkgver"
# Patches.
patch -uNp1 -i $srcdir/$pkgname-0.71-gcc-4.7.patch
mkdir -p build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_PHYSICS_COMPONENTS=ON \
-DBUILD_PHYSICS_ASSETS=ON \
..
make
}
package() {
cd "$srcdir/$pkgname-$pkgver/build"
make DESTDIR="$pkgdir/" install
}