Added Widelands.

parent ee67496d
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=widelands
pkgver=16
_pkgver=build16
pkgrel=3
pkgdesc="A realtime strategy game with emphasis on economy and transport."
arch=('i686' 'x86_64')
url="http://widelands.org/"
license=('GPL')
depends=('boost-libs' 'ggz-client-libs' 'glew' 'lua' 'python2' 'sdl_gfx' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf')
makedepends=('boost' 'cmake')
source=(http://launchpad.net/$pkgname/$_pkgver/$_pkgver/+download/$pkgname-$_pkgver-src.tar.bz2
$pkgname.desktop
$pkgname.png)
md5sums=('3d8c28e145b73c64d8ed1625319d25a2'
'86950190758e1aeaec8fe742440e8ab5'
'3dfda7e9ca76ca00dd98d745d0ceb328')
build() {
cd $srcdir/$pkgname-$_pkgver-src
mkdir -p build/compile && cd build/compile
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWL_INSTALL_PREFIX=/usr \
-DWL_INSTALL_DATADIR=share/$pkgname \
-DWL_INSTALL_BINDIR=bin \
../..
make
}
package() {
cd $srcdir/$pkgname-$_pkgver-src/build/compile
make DESTDIR=$pkgdir install
# Install bin, icon and desktop file
#install -Dm 755 src/$pkgname $pkgdir/usr/share/$pkgname/$pkgname
#install -Dm 755 $srcdir/$pkgname.sh $pkgdir/usr/bin/$pkgname
install -Dm644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
# #!/bin/sh
# cd /usr/share/widelands
# ./widelands $*
}
[Desktop Entry]
Name=Widelands
GenericName=Widelands
Comment=Realtime strategy game
Comment[gl]=Xogo de estratexia en tempo real.
Icon=widelands
Exec=widelands
Type=Application
Categories=Game;StrategyGame;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment