From a4163886a00e6b0b55f58df2e2a5896bd03cf4d0 Mon Sep 17 00:00:00 2001 From: Adam Gausmann Date: Sat, 18 Apr 2020 21:19:42 -0500 Subject: [PATCH] New package: sfxr-1.2.1 --- srcpkgs/sfxr/files/LICENSE | 32 +++++++++++++++++++ .../sfxr/patches/fix-overwritten-flags.patch | 13 ++++++++ srcpkgs/sfxr/template | 18 +++++++++++ 3 files changed, 63 insertions(+) create mode 100644 srcpkgs/sfxr/files/LICENSE create mode 100644 srcpkgs/sfxr/patches/fix-overwritten-flags.patch create mode 100644 srcpkgs/sfxr/template diff --git a/srcpkgs/sfxr/files/LICENSE b/srcpkgs/sfxr/files/LICENSE new file mode 100644 index 00000000000..a9996ab0eb4 --- /dev/null +++ b/srcpkgs/sfxr/files/LICENSE @@ -0,0 +1,32 @@ +License +------- + +Basically, I don't care what you do with it, anything goes. + +To please all the troublesome folks who request a formal license, +I attach the "MIT license" as follows: + +-- + +Copyright (c) 2007 Tomas Pettersson + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. diff --git a/srcpkgs/sfxr/patches/fix-overwritten-flags.patch b/srcpkgs/sfxr/patches/fix-overwritten-flags.patch new file mode 100644 index 00000000000..8103b8fd2c7 --- /dev/null +++ b/srcpkgs/sfxr/patches/fix-overwritten-flags.patch @@ -0,0 +1,13 @@ +--- Makefile 2012-04-28 07:55:05.000000000 -0500 ++++ 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/template b/srcpkgs/sfxr/template new file mode 100644 index 00000000000..d89ec0b80b0 --- /dev/null +++ b/srcpkgs/sfxr/template @@ -0,0 +1,18 @@ +# Template file for 'sfxr' +pkgname=sfxr +version=1.2.1 +revision=1 +wrksrc="sfxr-sdl-${version}" +build_style=gnu-makefile +hostmakedepends="pkg-config desktop-file-utils" +makedepends="SDL-devel gtk+3-devel" +short_desc="Sound effect generator" +maintainer="Adam Gausmann " +license="custom:sfxr, MIT" +homepage="http://www.drpetter.se/project_sfxr.html" +distfiles="http://www.drpetter.se/files/sfxr-sdl-${version}.tar.gz" +checksum=ca93be8964c92fe3a2c945640cd3e93c95ae7abe24290818f4fe7f6e5a7cd835 + +post_install() { + vlicense ${FILESDIR}/LICENSE +}