50 lines
1.6 KiB
Bash
50 lines
1.6 KiB
Bash
# Template file for 'widelands'
|
|
pkgname=widelands
|
|
version=20
|
|
revision=3
|
|
wrksrc="${pkgname}-build${version}"
|
|
build_style=cmake
|
|
configure_args="
|
|
-DOPENGL_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include
|
|
-DOPTION_BUILD_WEBSITE_TOOLS=OFF
|
|
-DWL_INSTALL_DATADIR=/usr/share/widelands"
|
|
hostmakedepends="python pkg-config gettext"
|
|
makedepends="boost-devel icu-devel minizip-devel gettext-devel glu-devel
|
|
glew-devel SDL2_gfx-devel SDL2_image-devel SDL2_net-devel
|
|
SDL2_mixer-devel SDL2_ttf-devel"
|
|
depends="${pkgname}-data-${version}_${revision}"
|
|
short_desc="Real-time strategy game"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.widelands.org/"
|
|
distfiles="https://launchpad.net/${pkgname}/build${version}/build${version}/+download/${pkgname}-build${version}.tar.bz2"
|
|
checksum=38594d98c74f357d4c31dd8ee2b056bfe921f42935935af915d11b792677bcb2
|
|
|
|
CXXFLAGS="-Wno-maybe-uninitialized -DU_USING_ICU_NAMESPACE=1"
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# Upstream could have defined a flag to disable tests,
|
|
# or make sure that test binaries are in host format...
|
|
patch -p0 < ${FILESDIR}/disable-testing.patch
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
# For some reason the binary is installed as /usr/widelands - move it
|
|
vmkdir usr/bin
|
|
mv ${DESTDIR}/usr/${pkgname} ${DESTDIR}/usr/bin
|
|
|
|
# Remove files not needed in the package
|
|
rm -f ${DESTDIR}/usr/COPYING ${DESTDIR}/usr/CREDITS ${DESTDIR}/usr/ChangeLog ${DESTDIR}/usr/VERSION
|
|
|
|
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
|
|
}
|
|
|
|
widelands-data_package() {
|
|
archs=noarch
|
|
short_desc+=" - data files"
|
|
pkg_install() {
|
|
vmove usr/share/widelands
|
|
}
|
|
}
|