supertuxkart: update to 1.2.

Add patch for ns_name_ntop, which doesn't exist for musl.

Remove archs restriction, it needed atomics support.

Add more system dependencies.
This commit is contained in:
Érico Rolim 2020-08-28 19:36:26 -03:00 committed by Andrew Benson
parent 26d1188010
commit 618b9d42e0
2 changed files with 29 additions and 9 deletions

View file

@ -0,0 +1,17 @@
Patch from https://github.com/supertuxkart/stk-code/pull/4361
Necessary because musl does not (yet?) implement ns_name_ntop.
diff --git a/src/network/network_config.cpp b/src/network/network_config.cpp
index 605254808..fd4fd5d24 100644
--- src/network/network_config.cpp
+++ src/network/network_config.cpp
@@ -587,7 +587,7 @@ void NetworkConfig::fillStunList(std::vector<std::pair<std::string, int> >* l,
for (unsigned i = 0; i < srv.size(); i++)
{
char server_name[512] = {};
- if (ns_name_ntop(srv[i] + SRV_SERVER, server_name, 512) < 0)
+ if (ns_name_uncompress(response, response + response_len, srv[i] + SRV_SERVER, server_name, 512) < 0)
continue;
uint16_t port = ns_get16(srv[i] + SRV_PORT);
uint16_t weight = ns_get16(srv[i] + SRV_WEIGHT);

View file

@ -1,26 +1,29 @@
# Template file for 'supertuxkart'
pkgname=supertuxkart
version=1.1
revision=3
archs="i686* x86_64* ppc64* aarch64*"
wrksrc="${pkgname}-${version}-src"
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"
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="http://supertuxkart.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-src.tar.xz"
checksum=e9b02b0b11ab68aacaec38306903feffe59a501224805cd3645cebf10e880ae8
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"
archs=noarch
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"