desktop/globulation2/PKGBUILD

39 lines
1.2 KiB
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=globulation2
_pkgname=glob2
pkgver=0.9.4.4
pkgrel=1
pkgdesc="RTS game which minimizes micro-management by automatically assigning tasks to units."
arch=('i686' 'x86_64')
url="http://www.globulation2.org/"
license=('GPL3')
depends=('boost>=1.43.0' 'sdl_net' 'sdl_image' 'sdl_ttf' 'libvorbis' 'speex' 'mesa' 'fribidi' 'desktop-file-utils')
makedepends=('scons')
install=$pkgname.install
source=("http://dl.sv.nongnu.org/releases/$_pkgname/0.9.4/$_pkgname-$pkgver.tar.gz"
"$pkgname-0.9.4.1-gcc44.patch")
md5sums=('94c527325f355a29a2807f8f18a6e6a8'
'b13cb1f73ece23bfc6413773678d583e')
build() {
cd $srcdir/$_pkgname-$pkgver
patch -Np0 -i $srcdir/$pkgname-0.9.4.1-gcc44.patch
scons BINDIR=$pkgdir/usr/bin INSTALLDIR=$pkgdir/usr/share
}
package () {
cd $srcdir/$_pkgname-$pkgver
scons install
find $pkgdir/usr/share -type f -exec chmod 644 '{}' \;
install -Dm644 data/icons/glob2-icon-48x48.png $pkgdir/usr/share/pixmaps/glob2-icon-48x48.png
}