Github messages for voidlinux
 help / color / mirror / Atom feed
From: Sapein <Sapein@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: sfxr-1.2.1
Date: Sun, 09 Jun 2024 18:03:47 +0200	[thread overview]
Message-ID: <20240609160347.25D4E29AF4@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-50725@inbox.vuxu.org>

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

There is an updated pull request by Sapein against master on the void-packages repository

https://github.com/Sapein/void-packages sfxr-1.2.1
https://github.com/void-linux/void-packages/pull/50725

New package: sfxr-1.2.1
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- 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

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

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

From 97b05e2e1d5de9b529c75d1ac1655dbee247b168 Mon Sep 17 00:00:00 2001
From: Sapein <5852983+Sapein@users.noreply.github.com>
Date: Thu, 6 Jun 2024 19:02:43 -0500
Subject: [PATCH] New package: sfxr-1.2.1

---
 srcpkgs/sfxr/patches/fix-flags.patch      | 13 +++++++++++++
 srcpkgs/sfxr/patches/sfxr-sdl-gcc8x.patch | 11 +++++++++++
 srcpkgs/sfxr/template                     | 23 +++++++++++++++++++++++
 3 files changed, 47 insertions(+)
 create mode 100644 srcpkgs/sfxr/patches/fix-flags.patch
 create mode 100644 srcpkgs/sfxr/patches/sfxr-sdl-gcc8x.patch
 create mode 100644 srcpkgs/sfxr/template

diff --git a/srcpkgs/sfxr/patches/fix-flags.patch b/srcpkgs/sfxr/patches/fix-flags.patch
new file mode 100644
index 00000000000000..5b21e8756c881d
--- /dev/null
+++ b/srcpkgs/sfxr/patches/fix-flags.patch
@@ -0,0 +1,13 @@
+--- sfxr-sdl-1.2.1/Makefile	2012-04-28 07:55:05.000000000 -0500
++++ sfxr-sdl-1.2.1/Makefile	2020-04-18 21:08:53.055807782 -0500
+@@ -1,7 +1,7 @@
+-CFLAGS=-ggdb
++override CFLAGS += -ggdb
+ GTK=3.0
+-CXXFLAGS=$(CFLAGS) `sdl-config --cflags` `pkg-config gtk+-${GTK} --cflags`
+-LDFLAGS=`sdl-config --libs` `pkg-config gtk+-${GTK} --libs`
++override CXXFLAGS += $(CFLAGS) `sdl-config --cflags` `pkg-config gtk+-${GTK} --cflags`
++override LDFLAGS += `sdl-config --libs` `pkg-config gtk+-${GTK} --libs`
+ 
+ sfxr: main.cpp tools.h sdlkit.h
+ 	$(CXX) $< $(CXXFLAGS) $(LDFLAGS) -o $@
diff --git a/srcpkgs/sfxr/patches/sfxr-sdl-gcc8x.patch b/srcpkgs/sfxr/patches/sfxr-sdl-gcc8x.patch
new file mode 100644
index 00000000000000..7bc4a2bcb1b8f5
--- /dev/null
+++ b/srcpkgs/sfxr/patches/sfxr-sdl-gcc8x.patch
@@ -0,0 +1,11 @@
+diff -up sfxr-sdl-1.2.1/sdlkit.h~ sfxr-sdl-1.2.1/sdlkit.h
+--- sfxr-sdl-1.2.1/sdlkit.h~	2012-04-28 12:33:53.000000000 +0200
++++ sfxr-sdl-1.2.1/sdlkit.h	2018-06-16 22:30:44.218691765 +0200
+@@ -77,6 +77,7 @@ static bool ddkLock ()
+ 	ddkpitch = sdlscreen->pitch / (sdlscreen->format->BitsPerPixel == 32 ? 4 : 2);
+ 	ddkscreen16 = (Uint16*)(sdlscreen->pixels);
+ 	ddkscreen32 = (Uint32*)(sdlscreen->pixels);
++	return true;
+ }
+ 
+ static void ddkUnlock ()
diff --git a/srcpkgs/sfxr/template b/srcpkgs/sfxr/template
new file mode 100644
index 00000000000000..f9be545a512f19
--- /dev/null
+++ b/srcpkgs/sfxr/template
@@ -0,0 +1,23 @@
+# Template file for 'sfxr'
+pkgname=sfxr
+version=1.2.1
+revision=1
+archs="i686 x86_64"
+build_style=gnu-makefile
+hostmakedepends="pkg-config desktop-file-utils"
+makedepends="SDL-devel gtk+3-devel"
+depends="SDL gtk+3"
+short_desc="Random sound effect generator for games, etc"
+maintainer="Sapein <5852983+Sapein@users.noreply.github.com>"
+license="MIT"
+homepage="https://www.drpetter.se/project_sfxr.html"
+distfiles="https://www.drpetter.se/files/sfxr-sdl-${version}.tar.gz"
+checksum=ca93be8964c92fe3a2c945640cd3e93c95ae7abe24290818f4fe7f6e5a7cd835
+
+post_extract() {
+	grep -A 21 "Copyright" readme.txt > LICENSE
+}
+
+post_install() {
+	vlicense LICENSE
+}

  parent reply	other threads:[~2024-06-09 16:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-07  0:08 [PR PATCH] " Sapein
2024-06-07 22:02 ` [PR PATCH] [Updated] " Sapein
2024-06-09 16:03 ` Sapein [this message]
2024-06-14 16:06 ` Sapein
  -- strict thread matches above, loose matches on Subject: below --
2020-04-19  2:18 [PR PATCH] " agausmann
2020-04-19  2:22 ` [PR PATCH] [Updated] " agausmann
2020-04-19  4:53 ` agausmann

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=20240609160347.25D4E29AF4@inbox.vuxu.org \
    --to=sapein@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).