mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
48 lines
1.2 KiB
Bash
48 lines
1.2 KiB
Bash
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
|
|
# Maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=gluon
|
|
pkgver=0.71.0
|
|
_pkgver=0.71
|
|
pkgrel=8
|
|
pkgdesc="A high-level game development library for the KDE desktop enviornment."
|
|
arch=('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
|
|
}
|
|
|