void-packages/srcpkgs/widelands/template

46 lines
1.6 KiB
Bash
Raw Normal View History

2015-05-04 22:56:54 +00:00
# Template file for 'widelands'
pkgname=widelands
version=18
revision=2
2015-05-04 22:56:54 +00:00
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
-DWL_INSTALL_DATADIR=share/widelands
-DWL_INSTALL_BINDIR=share/widelands"
2015-05-04 22:56:54 +00:00
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"
depends="${pkgname}-data-${version}_${revision}"
2015-05-04 22:56:54 +00:00
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}
}
widelands-data_package() {
noarch=yes
short_desc+=" - data files"
pkg_install() {
vmove usr/share/widelands/campaigns
vmove usr/share/widelands/fonts
vmove usr/share/widelands/global
vmove usr/share/widelands/locale
vmove usr/share/widelands/maps
vmove usr/share/widelands/music
vmove usr/share/widelands/pics
vmove usr/share/widelands/scripting
vmove usr/share/widelands/sound
vmove usr/share/widelands/tribes
vmove usr/share/widelands/txts
vmove usr/share/widelands/worlds
}
}