Github messages for voidlinux
 help / color / mirror / Atom feed
From: yoshiyoshyosh <yoshiyoshyosh@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: srb2kart-1.6
Date: Tue, 25 Jul 2023 11:28:13 +0200	[thread overview]
Message-ID: <20230725092813.lQERmuY35FpzqP8Xx1MSxX-1fxQFPu4XffILNsnKe7k@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45241@inbox.vuxu.org>

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

There is an updated 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: 2499 bytes --]

From ebefb3c84efac5c056ae6b359ea758d727e441e0 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 | 55 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
 create mode 100644 srcpkgs/srb2kart/template

diff --git a/srcpkgs/srb2kart/template b/srcpkgs/srb2kart/template
new file mode 100644
index 000000000000..62e66c0bc20c
--- /dev/null
+++ b/srcpkgs/srb2kart/template
@@ -0,0 +1,55 @@
+# 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
+
+	PROGRAM_NAME="${pkgname}" PROGRAM_DESCRIPTION="${short_desc}" \
+		PACKAGE_INSTALL_PATH="/usr/bin" PROGRAM_FILENAME="${pkgname}" \
+		envsubst < debian-template/srb2.desktop > srb2.desktop
+
+	vinstall srb2.png 644 /usr/share/pixmaps/ srb2kart.png
+	vinstall srb2.desktop 644 /usr/share/applications/ srb2kart.desktop
+	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
+}

  reply	other threads:[~2023-07-25  9:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-25  9:14 [PR PATCH] " yoshiyoshyosh
2023-07-25  9:28 ` yoshiyoshyosh [this message]
2023-07-26 18:06 ` [PR PATCH] [Updated] " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230725092813.lQERmuY35FpzqP8Xx1MSxX-1fxQFPu4XffILNsnKe7k@z \
    --to=yoshiyoshyosh@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).