desktop/widelands/PKGBUILD

54 lines
1.6 KiB
Bash
Raw Normal View History

# Maintainer: Manuel UtG <utg[dot]chakra.linux[at]gmail[dot]com>
pkgname=widelands
pkgver=18
_realver=build${pkgver}
pkgrel=7
pkgdesc="A realtime strategy game with emphasis on economy and transport."
arch=('x86_64')
url="http://widelands.org/"
license=('GPL')
depends=('boost-libs' 'ggz-client-libs' 'glew' 'lua51' 'python2' 'sdl_gfx' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf')
makedepends=('boost' 'cmake' 'mesa')
categories=('games')
source=("https://launchpad.net/widelands/${_realver}/build-${pkgver}/+download/$pkgname-$_realver-src.tar.bz2"
$pkgname.desktop
$pkgname.png)
md5sums=('01efe8db8cd25ffeb4f82b8b4ab6652e'
'86950190758e1aeaec8fe742440e8ab5'
'3dfda7e9ca76ca00dd98d745d0ceb328')
build() {
cd $srcdir/$pkgname-$_realver-src
sed -i "1 i #include <unistd.h>" src/main.cc
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-$_realver-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 $*
}