From 732d616b6c87d0e129fa22580e70e14ea4f74b23 Mon Sep 17 00:00:00 2001 From: Helmut Pozimski Date: Sat, 16 Jun 2018 17:28:33 +0200 Subject: [PATCH] New package: 0ad-0.0.23 [skip ci] --- srcpkgs/0ad/patches/musl.patch | 22 ++++++++++++++++++ srcpkgs/0ad/template | 41 ++++++++++++++++++++++++++++++++++ srcpkgs/0ad/update | 1 + 3 files changed, 64 insertions(+) create mode 100644 srcpkgs/0ad/patches/musl.patch create mode 100644 srcpkgs/0ad/template create mode 100644 srcpkgs/0ad/update diff --git a/srcpkgs/0ad/patches/musl.patch b/srcpkgs/0ad/patches/musl.patch new file mode 100644 index 00000000000..59a59f9d2ec --- /dev/null +++ b/srcpkgs/0ad/patches/musl.patch @@ -0,0 +1,22 @@ +--- libraries/source/nvtt/src/src/nvmath/nvmath.h.orig 2018-06-16 16:01:48.511540946 +0200 ++++ libraries/source/nvtt/src/src/nvmath/nvmath.h 2018-06-16 16:02:29.935000183 +0200 +@@ -130,7 +130,7 @@ + { + #if NV_OS_WIN32 + return _isnan(f) != 0; +-#elif NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_OPENBSD ++#elif NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_OPENBSD || !defined(__GLIBC__) + return isnan(f); + #elif NV_OS_LINUX + return isnanf(f); +--- source/lib/sysdep/os/linux/ldbg.cpp.orig 2018-06-16 16:27:55.639277094 +0200 ++++ source/lib/sysdep/os/linux/ldbg.cpp 2018-06-16 16:28:17.342014019 +0200 +@@ -33,7 +33,7 @@ + #include "lib/sysdep/sysdep.h" + #include "lib/debug.h" + +-#if OS_ANDROID ++#if OS_ANDROID || !defined(__GLIBC__) + + // Android NDK doesn't support backtrace() + // TODO: use unwind.h or similar? diff --git a/srcpkgs/0ad/template b/srcpkgs/0ad/template new file mode 100644 index 00000000000..149019c98ba --- /dev/null +++ b/srcpkgs/0ad/template @@ -0,0 +1,41 @@ +# Template file for '0ad' +pkgname=0ad +version=0.0.23 +revision=1 +wrksrc="${pkgname}-${version}-alpha" +hostmakedepends="pkg-config perl cmake python" +makedepends="SDL2-devel boost-devel gloox-devel libcurl-devel libenet-devel + libopenal-devel libpng-devel libsodium-devel libxml2-devel miniupnpc-devel + nspr-devel wxWidgets-devel" +depends="${pkgname}-data" +short_desc="Historically-based real-time strategy game" +maintainer="Helmut Pozimski " +license="GPL-2.0-or-later, CC-BY-SA-3.0, MPL-2.0, MIT" +homepage="https://play0ad.com" +distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-build.tar.xz" +checksum=cfa1e3b6989466961451c95a96c19c274cd373ce6d98f83836e6f862c9d3e163 +nocross="uses bundled third-party libraries that do not cross-compile" + +CXXFLAGS="-fpermissive" + +do_configure() { + cd ${wrksrc}/build/workspaces + ./update-workspaces.sh --bindir=/usr/bin --libdir=/usr/lib/0ad \ + --datadir=/usr/share/${pkgname}/data +} + +do_build() { + make config=release -C build/workspaces/gcc ${makejobs} +} + +do_install() { + vbin binaries/system/pyrogenesis + vmkdir usr/lib/${pkgname} + vcopy binaries/system/*.so usr/lib/${pkgname} + vmkdir usr/share/${pkgname}/data + vcopy binaries/data/l10n usr/share/${pkgname}/data + vbin build/resources/${pkgname}.sh ${pkgname} + vinstall build/resources/${pkgname}.desktop 0644 usr/share/applications + vinstall build/resources/${pkgname}.png 0644 usr/share/pixmaps + vlicense LICENSE.txt +} diff --git a/srcpkgs/0ad/update b/srcpkgs/0ad/update new file mode 100644 index 00000000000..584aa9077fb --- /dev/null +++ b/srcpkgs/0ad/update @@ -0,0 +1 @@ +pattern='href="0ad-\K[\d\.]*+(?=-alpha-unix-build.tar.xz")'