void-packages/srcpkgs/supertuxkart/template

34 lines
1.3 KiB
Bash

# Template file for 'supertuxkart'
pkgname=supertuxkart
version=1.2
revision=1
wrksrc="SuperTuxKart-${version}-src"
build_style=cmake
hostmakedepends="pkg-config"
makedepends="libgomp-devel libjpeg-turbo-devel libpng-devel
libbluetooth-devel glu-devel libvorbis-devel libXrandr-devel
libopenal-devel fribidi-devel libcurl-devel freetype-devel
libopenglrecorder-devel wayland-devel harfbuzz-devel libenet-devel
libogg-devel MesaLib-devel libressl-devel zlib-devel SDL2-devel glew-devel"
depends="desktop-file-utils hicolor-icon-theme supertuxkart-data"
short_desc="Kart racing game featuring Tux and his friends"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://supertuxkart.net"
distfiles="https://github.com/${pkgname}/stk-code/releases/download/${version}/SuperTuxKart-${version}-src.tar.xz"
checksum=052edf0afdbeb99583fe8676fb0ab80ecb6103fb88b7540f858d1b5fa1297d37
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
supertuxkart-data_package() {
short_desc+=" - data files"
pkg_install() {
# these script only serve a prupose for developing, not to the package
rm "${DESTDIR}/usr/share/supertuxkart/data/po/extract_strings_from_XML.py"
rm "${DESTDIR}/usr/share/supertuxkart/data/po/update_po_authors.py"
vmove usr/share/supertuxkart
}
}