Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: libopenmpt-0.4.11 & openmpt123
Date: Sun, 26 Jan 2020 10:18:03 +0100	[thread overview]
Message-ID: <20200126091803.lSghtV8uB509N8O5pta4EtUNUssyBb67x_wX1pbFvFg@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18468@inbox.vuxu.org>

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

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

https://github.com/ScrelliCopter/void-packages openmpt
https://github.com/void-linux/void-packages/pull/18468

New package: libopenmpt-0.4.11 & openmpt123
Adds the OpenMPT music module replayer library + bundled mpg123 style command line player/decoder using it.

This is my first more complex package, so please let me know if there are any mistakes and I'll try to correct them.
Thanks.

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

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

From d4dc2e12f6e444fd2090ff7b949ceee42f157226 Mon Sep 17 00:00:00 2001
From: a dinosaur <nick@a-dinosaur.com>
Date: Wed, 22 Jan 2020 23:24:53 +1100
Subject: [PATCH] libopenmpt: add template file + update shlibs

---
 common/shlibs               |  1 +
 srcpkgs/libopenmpt-devel    |  1 +
 srcpkgs/libopenmpt/template | 51 +++++++++++++++++++++++++++++++++++++
 srcpkgs/openmpt123          |  1 +
 4 files changed, 54 insertions(+)
 create mode 120000 srcpkgs/libopenmpt-devel
 create mode 100644 srcpkgs/libopenmpt/template
 create mode 120000 srcpkgs/openmpt123

diff --git a/common/shlibs b/common/shlibs
index 35fcd4de243..7a7e1abafc8 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -331,6 +331,7 @@ libglademm-2.4.so.1 libglademm-2.6.7_1
 libthunarx-3.so.0 Thunar-1.8.1_1
 libexif.so.12 libexif-0.6.17_1
 liboil-0.3.so.0 liboil-0.3.16_1
+libopenmpt.so.0 libopenmpt-0.4.11_1
 libogg.so.0 libogg-1.3.0_1
 libvorbis.so.0 libvorbis-1.2.1rc1_1
 libvorbisenc.so.2 libvorbis-1.2.1rc1_1
diff --git a/srcpkgs/libopenmpt-devel b/srcpkgs/libopenmpt-devel
new file mode 120000
index 00000000000..4a03b0fc889
--- /dev/null
+++ b/srcpkgs/libopenmpt-devel
@@ -0,0 +1 @@
+libopenmpt
\ No newline at end of file
diff --git a/srcpkgs/libopenmpt/template b/srcpkgs/libopenmpt/template
new file mode 100644
index 00000000000..e617136694a
--- /dev/null
+++ b/srcpkgs/libopenmpt/template
@@ -0,0 +1,51 @@
+# Template file for 'libopenmpt'
+pkgname=libopenmpt
+version=0.4.11
+revision=1
+wrksrc="libopenmpt-${version}+release.autotools"
+build_style=gnu-configure
+configure_args="$(vopt_with pulseaudio)
+ $(vopt_with sdl) $(vopt_with sdl2)
+ $(vopt_enable libopenmpt_modplug) $(vopt_enable libmodplug)"
+hostmakedepends="pkg-config"
+makedepends="zlib-devel mpg123-devel libogg-devel libvorbis-devel
+ portaudio-devel portaudio-cpp-devel libsndfile-devel libflac-devel
+ $(vopt_if pulseaudio pulseaudio-devel) $(vopt_if sdl2 SDL2-devel)
+ $(vopt_if sdl SDL-devel)"
+short_desc="Cross-platform C & C++ library to decode tracked music files (modules)"
+maintainer="a dinosaur <nick@a-dinosaur.com>"
+license="BSD-3-Clause"
+homepage="https://lib.openmpt.org/libopenmpt/"
+distfiles="https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz"
+checksum=260e92cc2f6af37113442bff2c75a3c36a09eba4078dc593203a0502f95d26bd
+conflicts="$(vopt_if libmodplug libmodplug)"
+
+post_install() {
+	vlicense LICENSE
+}
+
+# Package build options
+build_options="pulseaudio sdl2 sdl libopenmpt_modplug libmodplug"
+build_options_default="pulseaudio"
+vopt_conflict sdl2 sdl
+
+libopenmpt-devel_package() {
+	depends="${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/share/doc/libopenmpt/examples
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+	}
+}
+
+openmpt123_package() {
+	depends="${sourcepkg}-${version}_${revision}"
+	short_desc="Cross-platform command-line or terminal based module file player"
+	pkg_install() {
+		vmove usr/bin/openmpt123
+		vmove usr/share/man/man1/openmpt123.1
+	}
+}
diff --git a/srcpkgs/openmpt123 b/srcpkgs/openmpt123
new file mode 120000
index 00000000000..4a03b0fc889
--- /dev/null
+++ b/srcpkgs/openmpt123
@@ -0,0 +1 @@
+libopenmpt
\ No newline at end of file

  parent reply	other threads:[~2020-01-26  9:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-22 12:49 [PR PATCH] " voidlinux-github
2020-01-26  7:54 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-26  9:18 ` voidlinux-github [this message]
2020-01-26 10:52 ` voidlinux-github
2020-01-26 10:53 ` voidlinux-github
2020-01-26 15:28 ` [PR PATCH] [Merged]: " voidlinux-github

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=20200126091803.lSghtV8uB509N8O5pta4EtUNUssyBb67x_wX1pbFvFg@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --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).