wildmidi: update to 0.4.5.

Add patch to refer to github project as the homepage,
and move usr/lib/cmake files to libwildmidi-devel
This commit is contained in:
Mat Boehlke 2023-07-16 15:11:30 -05:00 committed by classabbyamp
parent 3c620c3d7a
commit 6378c20691
3 changed files with 49 additions and 17 deletions

View File

@ -0,0 +1,44 @@
Adapted from
https://github.com/Mindwerks/wildmidi/commit/a128266be48f2e2fabcf308232f88c2bbaa03677
Replace mindwerks.net home page with the github project page in the package.
---
diff --git a/README.md b/README.md
index 4f33e7e..e05912a 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ applications that wish to include MIDI file playback.
Version: 0.4.5
Licenses: GPLv3+ and LGPLv3
-Website: http://www.mindwerks.net/projects/wildmidi
+Website: https://github.com/Mindwerks/wildmidi
PLATFORMS:
diff --git a/include/config.h.cmake b/include/config.h.cmake
index 65ab0b8..3f52ae7 100644
--- a/include/config.h.cmake
+++ b/include/config.h.cmake
@@ -4,7 +4,7 @@
#define PACKAGE "wildmidi"
/* Define to the home page for this package. */
-#define PACKAGE_URL "http://www.mindwerks.net/projects/wildmidi/"
+#define PACKAGE_URL "https://github.com/Mindwerks/wildmidi"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "https://github.com/Mindwerks/wildmidi/issues"
diff --git a/src/wildmidi.pc.in b/src/wildmidi.pc.in
index 3d8e84f..1a73284 100644
--- a/src/wildmidi.pc.in
+++ b/src/wildmidi.pc.in
@@ -8,7 +8,7 @@ includedir=${exec_prefix}/@CMAKE_INSTALL_INCLUDEDIR@
Name: WildMIDI
Description: software synthesizer library
Version: @WILDMIDI_VERSION@
-URL: https://www.mindwerks.net/projects/wildmidi/
+URL: https://github.com/Mindwerks/wildmidi
Libs: -L${libdir} -lWildMidi
Libs.private: -lm

View File

@ -1,13 +0,0 @@
diff --git src/wildmidi.c src/wildmidi.c
index a9ae0f1..fd9c5e7 100644
--- a/src/wildmidi.c
+++ b/src/wildmidi.c
@@ -1997,7 +1997,7 @@ int main(int argc, char **argv) {
WildMidi_ClearError();
} else {
char *real_file = FIND_LAST_DIRSEP(argv[optind-1]);
- if (!real_file) real_file = argv[optind];
+ if (!real_file) real_file = argv[optind-1];
else real_file++;
mk_midifile_name(real_file);
printf("\rWriting %s: %u bytes.\r\n", midi_file, getmidisize);

View File

@ -1,7 +1,7 @@
# Template file for 'wildmidi'
pkgname=wildmidi
version=0.4.4
revision=2
version=0.4.5
revision=1
build_style=cmake
configure_args="-DWANT_ALSA=1 -DWANT_OSS=1 -DWANT_OPENAL=1"
hostmakedepends="pkg-config"
@ -10,9 +10,9 @@ depends="libwildmidi"
short_desc="Simple software midi player and core softsynth library"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="GPL-3.0-or-later, LGPL-3.0-only"
homepage="https://www.mindwerks.net/projects/wildmidi"
homepage="https://github.com/Mindwerks/wildmidi"
distfiles="https://github.com/Mindwerks/${pkgname}/archive/${pkgname}-${version}.tar.gz"
checksum=6f267c8d331e9859906837e2c197093fddec31829d2ebf7b958cf6b7ae935430
checksum=116c0f31d349eaa74a630ed5a9a17b6a351204877a4ed9fb9aacd9dbd7f6c874
post_install() {
vsconf ${FILESDIR}/wildmidi.cfg
@ -35,6 +35,7 @@ libwildmidi-devel_package() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove usr/share/man/man3
}
}