void-packages/srcpkgs/openlierox/template

43 lines
1.5 KiB
Bash

# Template file for 'openlierox'
pkgname=openlierox
version=0.58.rc5
revision=2
wrksrc=OpenLieroX
build_style=cmake
configure_args="-DSYSTEM_DATA_DIR=/usr/share -DDEBUG=OFF -DBREAKPAD=OFF"
hostmakedepends="pkg-config python"
makedepends="SDL_image-devel SDL_mixer-devel freealut-devel
gd-devel libcurl-devel libvorbis-devel libxml2-devel libzip-devel"
depends="virtual?libGL python"
short_desc="Addictive real-time excessive Worms-clone"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.openlierox.net/"
distfiles="${SOURCEFORGE_SITE}/openlierox/OpenLieroX_${version/.rc/_rc}.src.tar.bz2"
checksum=3e029aba20f22d902027293e1f1a196e2f1794455cb2483d099709d7fb6c5fbb
python_version=2
replaces="openlierox-data>=0"
CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libxml2"
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" libexecinfo-devel";;
esac
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) sed -i CMakeLists.txt -e "/^TARGET_LINK_LIBRARIES/s/)/ execinfo)/" ;;
esac
}
do_install() {
# This package uses cmake yet it lacks an install target
vbin build/bin/openlierox
vman doc/openlierox.6
vinstall share/OpenLieroX.svg 644 usr/share/pixmaps
vinstall share/openlierox-openlierox.desktop 644 usr/share/applications openlierox.desktop
vmkdir usr/share/OpenLieroX
vcopy share/gamedir/* usr/share/OpenLieroX
find ${DESTDIR}/usr/share/OpenLieroX -type d -exec chmod 755 "{}" \;
find ${DESTDIR}/usr/share/OpenLieroX -type f -exec chmod 644 "{}" \;
}