updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / stratagus / PKGBUILD
blob6753c1679c1108b67871166033274db5291b3b84
1 # Contributor: Angelo Theodorou <encelo@users.sourceforge.net>
2 pkgname=stratagus
3 pkgver=2.2.6
4 pkgrel=1
5 pkgdesc="A free cross-platform real-time strategy gaming engine"
6 arch=('i686' 'x86_64')
7 url="https://launchpad.net/stratagus"
8 license=('GPL')
9 depends=('gcc-libs' 'bzip2' 'libgl' 'sdl' 'libpng' 'libmng' 'libvorbis' 'libtheora'
10 'libmikmod' 'lua' 'toluapp')
11 makedepends=('cmake')
12 changelog=stratagus.changelog
13 source=(http://launchpad.net/stratagus/trunk/$pkgver/+download/stratagus_$pkgver.orig.tar.gz)
14 md5sums=('1b5485f3d5acd3bc1b7e6a90bb1d38b3')
16 build() {
17   cd $srcdir
18   mkdir build
19   cd build
21   cmake ../${pkgname}_$pkgver.orig \
22   -DCMAKE_BUILD_TYPE=Release \
23   -DCMAKE_INSTALL_PREFIX=/usr
24   make || return 1
26   mkdir -p ${pkgdir}/usr/include
27   cp ${srcdir}/${pkgname}_$pkgver.orig/gameheaders/stratagus-game-launcher.h ${pkgdir}/usr/include
30 package() {
31   cd "${srcdir}"/build
32   make DESTDIR="${pkgdir}" install
33   mv ${pkgdir}/usr/games/stratagus ${pkgdir}/usr/bin
34   rmdir ${pkgdir}/usr/games