void-packages/srcpkgs/freedroidRPG/template

49 lines
1.5 KiB
Bash
Raw Normal View History

2015-11-21 10:58:57 +01:00
# Template file for 'freedroidRPG'.
2015-11-20 09:55:06 +01:00
pkgname=freedroidRPG
2016-04-04 09:18:54 +02:00
version=0.16.1
2015-11-20 09:55:06 +01:00
revision=1
2016-04-04 09:18:54 +02:00
wrksrc=${pkgname,,}-${version}
2015-11-20 09:55:06 +01:00
build_style=gnu-configure
hostmakedepends="pkg-config python"
makedepends="SDL_gfx-devel SDL_image-devel SDL_mixer-devel
libjpeg-turbo-devel libvorbis-devel lua-devel libpng-devel"
depends="${pkgname}-data>=${version}_${revision}"
short_desc="Role playing game featuring Tux and evil robots"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-3"
homepage="http://www.freedroid.org/"
2016-04-04 09:18:54 +02:00
distfiles="http://ftp.osuosl.org/pub/freedroid/${pkgname}-${version%.*}/${pkgname}-${version}.tar.gz"
checksum=426df175034b12095e7498fd80c907e507667c960ee1da331d9e5566d1b09358
2015-11-20 09:55:06 +01:00
case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args+=" --disable-backtrace"
esac
post_install() {
local script=freedroid
# Remove the .UTF-8 suffix from the user's LANG setting,
# or otherwise the internal font is wrong when rendering
# non-ASCII characters. My assumption is the game expects
# ISO-8859-1 (aka Latin1).
echo "#!/bin/sh" > ${script}
echo "# Strip .UTF-8 extension from the user's LANG" >> ${script}
echo "LANG=$(echo \"$LANG\" | sed -e's;\.[Uu][Tt][Ff]-8;;')" >> ${script}
echo "exec ${pkgname} $*" >> ${script}
# install the wrapper script
vbin ${script}
# Start the wrapper script from the desktop file
2016-04-04 09:18:54 +02:00
sed -i ${PKGDESTDIR}/usr/share/applications/${pkgname,,}.desktop \
2015-11-20 09:55:06 +01:00
-e "/^Exec/s;=${pkgname};=${script};"
}
freedroidRPG-data_package() {
short_desc+=" - data files"
noarch=yes
pkg_install() {
vmove usr/share/freedroidrpg
}
}