e0a82c147f
@pullmoll Closes: #3249 [via git-merge-pr]
48 lines
1.6 KiB
Bash
48 lines
1.6 KiB
Bash
# Template file for 'openlierox'
|
|
pkgname=openlierox
|
|
version=0.58.rc5
|
|
revision=1
|
|
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="openlierox-data libGL python"
|
|
short_desc="Addictive real-time excessive Worms-clone"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="GPL-2"
|
|
homepage="http://www.openlierox.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/openlierox/OpenLieroX_${version/.rc/_rc}.src.tar.bz2"
|
|
checksum=3e029aba20f22d902027293e1f1a196e2f1794455cb2483d099709d7fb6c5fbb
|
|
|
|
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 "{}" \;
|
|
}
|
|
|
|
openlierox-data_package() {
|
|
short_desc+=" - data files"
|
|
noarch=yes
|
|
pkg_install() {
|
|
vmove usr/share/OpenLieroX
|
|
}
|
|
}
|