Last active
August 29, 2015 14:08
-
-
Save kochol/785025e7d9f6864f05a0 to your computer and use it in GitHub Desktop.
PKGBUILD for easy install of kge on archlinux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
ldconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: kochol <kocholsoft@yahoo.com> | |
pkgname=kge-git | |
pkgver=04b8627 | |
pkgrel=1 | |
pkgdesc="Kochol Game Engine" | |
arch=('i686' 'x86_64') | |
url="http://www.kge3d.org" | |
license=('zlib') | |
depends=('sdl2' 'glew' 'devil' 'nvidia-cg-toolkit' 'ncurses') | |
makedepends=('git') | |
optdepends=() | |
provides=('kge') | |
conflicts=('kge') | |
source=('git+https://github.com/kochol/kge.git') | |
md5sums=('SKIP') | |
_gitname=kge | |
install=$pkgname.install | |
pkgver () { | |
cd $srcdir/$_gitname | |
echo $(git describe --always | sed 's/-/./g') | |
} | |
build() { | |
cd $srcdir/$_gitname | |
## make PREFIX=/usr sysconfdir=/etc localstatedir=/var | |
./waf configure build | |
} | |
package() { | |
cd $srcdir/$_gitname | |
mkdir -p $pkgdir/usr/lib/kge $pkgdir/etc/ld.so.conf.d/ | |
cp bin/Debug/lib*.so $pkgdir/usr/lib/kge/ | |
echo "/usr/lib/kge" > $pkgdir/etc/ld.so.conf.d/kge.conf | |
## make PREFIX=/usr sysconfdir=/etc localstatedir=/var DESTDIR="$pkgdir" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment