From: Oreo639 <Oreo639@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: srb2-2.2.4
Date: Sun, 19 Jul 2020 03:52:03 +0200 [thread overview]
Message-ID: <20200719015203.nIbjrRYCnhy2X_FR0_L4Lgdz2vPYO4RcJhw5iSnWjmc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21980@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 310 bytes --]
There is an updated pull request by Oreo639 against master on the void-packages repository
https://github.com/Oreo639/void-packages srb2
https://github.com/void-linux/void-packages/pull/21980
New package: srb2-2.2.4
A patch file from https://github.com/void-linux/void-packages/pull/21980.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-srb2-21980.patch --]
[-- Type: text/x-diff, Size: 3366 bytes --]
From 5b0dc824ad65e8f342719313032031043845ac4a Mon Sep 17 00:00:00 2001
From: oreo639 <31916379+Oreo639@users.noreply.github.com>
Date: Sat, 18 Jul 2020 18:43:38 -0700
Subject: [PATCH] New package: srb2-2.2.4
---
srcpkgs/srb2-data/template | 32 +++++++++++++++++++++++++++++
srcpkgs/srb2/files/srb2.desktop | 9 +++++++++
srcpkgs/srb2/template | 36 +++++++++++++++++++++++++++++++++
3 files changed, 77 insertions(+)
create mode 100644 srcpkgs/srb2-data/template
create mode 100644 srcpkgs/srb2/files/srb2.desktop
create mode 100644 srcpkgs/srb2/template
diff --git a/srcpkgs/srb2-data/template b/srcpkgs/srb2-data/template
new file mode 100644
index 00000000000..bf6ea2ec11c
--- /dev/null
+++ b/srcpkgs/srb2-data/template
@@ -0,0 +1,32 @@
+# Template file for 'srb2-data'
+pkgname=srb2-data
+version=2.2.4
+revision=1
+_instver=2.2.1
+archs=noarch
+short_desc="3D Sonic fan game based off of Doom Legacy - game data"
+maintainer="oreo639 <oreo6391@gmail.com>"
+license="GPL-2.0-or-later"
+homepage="https://srb2.org/"
+distfiles="https://github.com/STJr/SRB2/releases/download/SRB2_release_${_instver}/SRB2-v_${_instver//./}-Installer.exe
+ https://files.srb2.org/srb2.org/SRB2-v${version//./}-Patch.zip"
+checksum="5af82508be353dd41b05b793fa7aaef418eab246df7050f72c569f1809b3160f
+ 8f384643a226041ebd7fed5e4d1e610ffba9da36dc34f51a50d9461d768f6750"
+
+do_extract() {
+ local f curfile
+
+ mkdir -p ${wrksrc}
+ for f in ${distfiles}; do
+ curfile="${f#*>}"
+ curfile="${curfile##*/}"
+ bsdtar xf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${curfile}
+ done
+}
+
+do_install() {
+ vmkdir /usr/share/games/SRB2
+ for f in {music,player}.dta {srb2,zones,patch,patch_music}.pk3; do
+ vcopy ${f} /usr/share/games/SRB2
+ done
+}
diff --git a/srcpkgs/srb2/files/srb2.desktop b/srcpkgs/srb2/files/srb2.desktop
new file mode 100644
index 00000000000..d681e7fd136
--- /dev/null
+++ b/srcpkgs/srb2/files/srb2.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Sonic Robo Blast 2
+Encoding=UTF-8
+Exec=srb2
+Icon=srb2
+Terminal=false
+Type=Application
+StartupNotify=false
+Categories=Application;Game;
diff --git a/srcpkgs/srb2/template b/srcpkgs/srb2/template
new file mode 100644
index 00000000000..2d7b1e6270f
--- /dev/null
+++ b/srcpkgs/srb2/template
@@ -0,0 +1,36 @@
+# Template file for 'srb2'
+pkgname=srb2
+version=2.2.4
+revision=1
+wrksrc="SRB2-SRB2_release_${version}"
+hostmakedepends="pkg-config"
+makedepends="SDL2-devel SDL2_mixer-devel libpng-devel libupnp-devel libgme-devel libopenmpt-devel"
+depends="srb2-data>=0"
+short_desc="3D Sonic fan game based off of Doom Legacy"
+maintainer="oreo639 <oreo6391@gmail.com>"
+license="GPL-2.0-or-later"
+homepage="https://srb2.org/"
+distfiles="https://github.com/STJr/SRB2/archive/SRB2_release_${version}.tar.gz"
+checksum=4b5b60dfe08623268c1f12ba1ff4e0802c5bbebcfed47b54816bc19ee02cc0e3
+
+case "$XBPS_TARGET_MACHINE" in
+ i686*) makedepends+=" nasm" ;;
+ *) ISNOTX86="NONX86=1" ;;
+esac
+
+if [ "$CROSS_BUILD" ]; then
+ OBJCPYCMD="OBJCOPY=${XBPS_CROSS_TRIPLET}-objcopy"
+fi
+
+do_build() {
+ make -C src LINUX=1 ${ISNOTX86} ${OBJCPYCMD} EXENAME=${pkgname} DBGNAME="${pkgname}-debug" NOOBJDUMP=1 NOUPX=1
+}
+
+do_install() {
+ vbin bin/Linux/Release/${pkgname}
+}
+
+post_install() {
+ vinstall srb2.png 644 /usr/share/pixmaps
+ vinstall ${FILESDIR}/srb2.desktop 644 /usr/share/applications/
+}
next prev parent reply other threads:[~2020-07-19 1:52 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-15 7:59 [PR PATCH] " Oreo639
2020-05-15 8:00 ` [PR PATCH] [Updated] " Oreo639
2020-05-15 8:42 ` Oreo639
2020-05-15 8:49 ` Oreo639
2020-05-15 8:59 ` Oreo639
2020-07-19 1:52 ` Oreo639 [this message]
2020-07-19 2:54 ` Oreo639
2020-07-27 22:41 ` [PR PATCH] [Updated] New package: srb2-2.2.6 Oreo639
2020-07-27 23:04 ` Oreo639
2020-07-27 23:05 ` Oreo639
2021-02-16 6:23 ` [PR REVIEW] " ericonr
2021-02-16 6:24 ` ericonr
2021-02-16 6:24 ` ericonr
2021-02-16 19:51 ` [PR PATCH] [Updated] " Oreo639
2021-02-16 19:53 ` [PR REVIEW] " Oreo639
2021-02-16 19:53 ` Oreo639
2021-02-16 19:54 ` Oreo639
2021-02-16 19:54 ` ericonr
2021-02-16 19:58 ` Oreo639
2021-02-16 20:00 ` Oreo639
2021-02-16 20:00 ` Oreo639
2021-02-16 20:20 ` ericonr
2021-02-16 20:21 ` [PR PATCH] [Updated] " Oreo639
2021-02-16 20:21 ` [PR REVIEW] " Oreo639
2021-02-16 20:22 ` Oreo639
2021-02-16 20:31 ` ericonr
2021-02-16 20:31 ` ericonr
2021-02-16 21:14 ` Oreo639
2021-02-16 22:06 ` [PR PATCH] [Updated] " Oreo639
2021-02-16 22:07 ` [PR REVIEW] " Oreo639
2021-02-21 5:06 ` ericonr
2021-02-21 5:13 ` the-maldridge
2021-02-21 5:31 ` Oreo639
2021-02-21 5:32 ` Oreo639
2021-02-21 5:33 ` the-maldridge
2021-02-21 5:57 ` ericonr
2021-02-21 6:01 ` Oreo639
2021-02-21 8:18 ` Oreo639
2021-02-21 8:19 ` Oreo639
2021-02-21 8:19 ` Oreo639
2021-04-11 4:11 ` ericonr
2021-04-11 4:51 ` Oreo639
2021-04-11 20:21 ` [PR PATCH] [Updated] " Oreo639
2021-04-18 3:58 ` [PR PATCH] [Merged]: " ericonr
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=20200719015203.nIbjrRYCnhy2X_FR0_L4Lgdz2vPYO4RcJhw5iSnWjmc@z \
--to=oreo639@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).