Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: srb2kart-1.6
@ 2023-07-25  9:14 yoshiyoshyosh
  2023-07-25  9:28 ` [PR PATCH] [Updated] " yoshiyoshyosh
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: yoshiyoshyosh @ 2023-07-25  9:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1272 bytes --]

There is a new pull request by yoshiyoshyosh against master on the void-packages repository

https://github.com/yoshiyoshyosh/void-packages srb2k
https://github.com/void-linux/void-packages/pull/45241

New package: srb2kart-1.6
#### Testing the changes
- I tested the changes in this PR: **YES**

- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl (crossbuild)
  - armv6l (crossbuild)
  - i686 (crossbuild)
  - aarch64 (crossbuild)

Closes #19355

most of srb2kart follows the same build style as srb2 with some tiny differences, so I used srb2's template as a base. there's some funkiness with where the result of the build is placed (`bin/Linux64` seems to be used exclusively for `x86_64`, since `aarch64` didn't get output there), but I think this covers all bases (I made sure to cross compile lots). this package is restricted because srb2 is restricted.

A patch file from https://github.com/void-linux/void-packages/pull/45241.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-srb2k-45241.patch --]
[-- Type: text/x-diff, Size: 2179 bytes --]

From 96e55b3d137b3c202d7f57cfe3117da6fcc2fc16 Mon Sep 17 00:00:00 2001
From: yosh <yosh-git@riseup.net>
Date: Tue, 25 Jul 2023 03:57:56 -0500
Subject: [PATCH] New package: srb2kart-1.6

---
 srcpkgs/srb2kart/template | 49 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 srcpkgs/srb2kart/template

diff --git a/srcpkgs/srb2kart/template b/srcpkgs/srb2kart/template
new file mode 100644
index 000000000000..79c7a6f88fa2
--- /dev/null
+++ b/srcpkgs/srb2kart/template
@@ -0,0 +1,49 @@
+# Template file for 'srb2kart'
+pkgname=srb2kart
+version=1.6
+revision=1
+create_wrksrc=true
+build_wrksrc="Kart-Public-${version}"
+build_style=gnu-makefile
+make_use_env=yes
+make_build_args="-C src/ ECHO=1 LINUX=1 EXENAME=${pkgname}
+ NOOBJDUMP=1 NOUPX=1 DBGNAME=${pkgname}-debug PREFIX="
+hostmakedepends="pkg-config gettext"
+makedepends="SDL2-devel SDL2_mixer-devel libpng-devel libupnp-devel
+ libcurl-devel libgme-devel"
+short_desc="Kart racing game based off Sonic Robo Blast 2"
+maintainer="yosh <yosh-git@riseup.net>"
+license="GPL-2.0-or-later"
+homepage="https://mb.srb2.org/addons/srb2kart.2435/"
+distfiles="https://github.com/STJr/Kart-Public/archive/refs/tags/v${version}.tar.gz
+ https://github.com/STJr/Kart-Public/releases/download/v${version}/AssetsLinuxOnly.zip"
+checksum="924489e33ebb7e41bae3b84a65be2aae2ca01e2050938bff1e702b39848958d6
+ 7a384fb99d42f0cf41d12e3ed873754f9a5ba2b993d5e54bde7962bea3accdd1"
+restricted=yes
+
+case "$XBPS_TARGET_MACHINE" in
+	i686*) hostmakedepends+=" nasm" ;;
+	x86_64*) make_build_args+=" X86_64=1 NONX86=1" ;;
+	*) make_build_args+=" NONX86=1" ;;
+esac
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+	export LDFLAGS="-lexecinfo"
+fi
+
+if [ -n "$CROSS_BUILD" ]; then
+	make_build_args+=" OBJCOPY=${XBPS_CROSS_TRIPLET}-objcopy"
+fi
+
+do_install() {
+	case "$XBPS_TARGET_MACHINE" in
+		x86_64*) vbin bin/Linux/Release/srb2kart ;;
+		*) vbin bin/Linux/Release/srb2kart ;;
+	esac
+
+	vmkdir /usr/share/games/SRB2Kart
+	for f in {bonuschars,chars,gfx,maps,music,sounds,textures}.kart srb2.srb mdls{.dat,}; do
+		vcopy ../${f} /usr/share/games/SRB2Kart
+	done
+}

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-11-04  2:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-25  9:14 [PR PATCH] New package: srb2kart-1.6 yoshiyoshyosh
2023-07-25  9:28 ` [PR PATCH] [Updated] " yoshiyoshyosh
2023-07-26 18:06 ` yoshiyoshyosh
2023-07-26 18:11 ` yoshiyoshyosh
2023-10-25  1:45 ` github-actions
2023-10-25  2:03 ` yoshiyoshyosh
2024-01-24  1:47 ` github-actions
2024-01-28 20:49 ` yoshiyoshyosh
2024-04-28  1:46 ` github-actions
2024-05-05 20:11 ` yoshiyoshyosh
2024-08-04  1:54 ` github-actions
2024-08-05 16:45 ` [PR PATCH] [Updated] " yoshiyoshyosh
2024-11-04  2:01 ` github-actions
2024-11-04  2:17 ` [PR PATCH] [Updated] " yoshiyoshyosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).