New package: widelands-18

This commit is contained in:
jbu 2015-05-05 00:56:54 +02:00 committed by Juan RP
parent 2f7cba756a
commit 622c6ab354
3 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,22 @@
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=Widelands
GenericName=Strategy Game
GenericName[af]=Strategie-spel
GenericName[ca]=Joc d'estrategia
GenericName[de]=Strategiespiel
GenericName[dk]=Strategi-spil
GenericName[eu]=Estrategiako jokoa
GenericName[fr]=Jeu de stratégie
GenericName[he]=משחק אסטרטגיה
GenericName[hu]=Stratégia
GenericName[ru]=Стратегическая игра
GenericName[sk]=Strategická hra
Comment=A a real-time build-up strategy game
Comment[de]=Echtzeitbasiertes Aufbau-Strategiespiel
Icon=/usr/share/games/widelands/pics/wl-ico-128.png
TryExec=/usr/games/widelands
Exec=/usr/bin/widelands
Categories=Application;Game;StrategyGame;

View File

@ -0,0 +1,10 @@
#!/bin/sh
#
# Startup script for widelands to recognize the user's LANG setting, if any.
WL_DATA="/usr/share/games/widelands"
WL_LOCALE="$WL_DATA/locale"
WL_LANG="$LANG"
[ -z "$WL_LANG" ] && WL_LANG="en_US.UTF-8"
exec /usr/games/widelands --datadir="$WL_DATA" --localedir="$WL_LOCALE" --language="$WL_LANG"

View File

@ -0,0 +1,23 @@
# Template file for 'widelands'
pkgname=widelands
version=18
revision=1
wrksrc=${pkgname}-build${version}-src
build_style=cmake
configure_args="
-DOPENGL_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include
-DLUA_LIBRARY=${XBPS_CROSS_BASE}/usr/lib/liblua5.1.a
-DLUA_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include/lua5.1"
hostmakedepends="cmake python pkg-config"
makedepends="boost-devel minizip-devel glu-devel glew-devel SDL_gfx-devel SDL_image-devel SDL_net-devel SDL_mixer-devel SDL_ttf-devel lua51-devel"
short_desc="A real-time strategy game"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
homepage="http://www.widelands.org/"
distfiles="https://launchpad.net/${pkgname}/build${version}/build-${version}/+download/${pkgname}-build${version}-src.tar.bz2"
checksum="6dffd9178f93ff7a9c3c0c9b31b7d3b8eb060c79fbd98901e6311837390b7de3"
post_install() {
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
vbin ${FILESDIR}/${pkgname}.sh ${pkgname}
}