desktop/widelands/PKGBUILD
2017-05-31 23:42:59 +02:00

47 lines
1.5 KiB
Bash

pkgname=widelands
pkgver=19
_realver=build${pkgver}
pkgrel=3
pkgdesc="A realtime strategy game with emphasis on economy and transport."
arch=('x86_64')
url="http://widelands.org/"
license=('GPL')
depends=('boost-libs' 'glew' 'lua51' 'python2' 'sdl2_gfx' 'sdl2_image' 'sdl2_mixer' 'sdl2_net' 'sdl2_ttf')
makedepends=('boost' 'cmake' 'mesa' 'doxygen')
categories=('games')
source=("https://launchpad.net/widelands/${_realver}/${_realver}/+download/$pkgname-$_realver-src.tar.bz2"
$pkgname.desktop
$pkgname.png)
sha256sums=('e511f9d26828a2b71b64cdfc6674e6e847543b2da73961ab882acca36c7c01a6'
'5001a9bb563c92ab700360a4c770db0f604806f800d0d6853dd7d9f66ec980ca'
'6e9d5ee59793cea46242b89d1e37b21a2ed42eb18a115bdf29ca02f66cbb874d')
build() {
cd $srcdir/$pkgname-$_realver-src
mkdir -p build/compile && cd build/compile
cmake ../.. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWL_INSTALL_BASEDIR=/usr \
-DWL_INSTALL_DATADIR=share/$pkgname
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 $*
}