From 4227571a1677421e654010b322c4a0b16a4ed3e7 Mon Sep 17 00:00:00 2001
From: Alexander Golubev <fatzer2@gmail.com>
Date: Tue, 17 Mar 2026 08:51:53 +0300
Subject: trinity-apps/soundkonverter: new package, add 14.1.5, 9999

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
---
 trinity-apps/soundkonverter/Manifest               |  1 +
 ...-build-with-tqt-in-a-nonstandard-location.patch | 31 ++++++++++
 trinity-apps/soundkonverter/metadata.xml           |  8 +++
 .../soundkonverter/soundkonverter-14.1.5.ebuild    | 66 ++++++++++++++++++++++
 .../soundkonverter/soundkonverter-9999.ebuild      | 62 ++++++++++++++++++++
 5 files changed, 168 insertions(+)
 create mode 100644 trinity-apps/soundkonverter/Manifest
 create mode 100644 trinity-apps/soundkonverter/files/soundkonverter-14.1.5-Fix-build-with-tqt-in-a-nonstandard-location.patch
 create mode 100644 trinity-apps/soundkonverter/metadata.xml
 create mode 100644 trinity-apps/soundkonverter/soundkonverter-14.1.5.ebuild
 create mode 100644 trinity-apps/soundkonverter/soundkonverter-9999.ebuild

diff --git a/trinity-apps/soundkonverter/Manifest b/trinity-apps/soundkonverter/Manifest
new file mode 100644
index 00000000..0f409575
--- /dev/null
+++ b/trinity-apps/soundkonverter/Manifest
@@ -0,0 +1 @@
+DIST soundkonverter-trinity-14.1.5.tar.xz 248808 BLAKE2B 3dd68dc1ef20debc78c0d75bb83352dda298598ba43d03625e6c16a9d0378246bdf105da631ac8cdad504126ad82bfbe75577746d8544d0eed7599f39ac09683 SHA512 8fc50c60dbe2d051db9218cb106712426c86dfee8cfb4a7661daef5210ecb065b790227f9af563432bf2fe25b8c0638cc5688136fa76c2c8689f5fe8a44f059c
diff --git a/trinity-apps/soundkonverter/files/soundkonverter-14.1.5-Fix-build-with-tqt-in-a-nonstandard-location.patch b/trinity-apps/soundkonverter/files/soundkonverter-14.1.5-Fix-build-with-tqt-in-a-nonstandard-location.patch
new file mode 100644
index 00000000..1deb1fec
--- /dev/null
+++ b/trinity-apps/soundkonverter/files/soundkonverter-14.1.5-Fix-build-with-tqt-in-a-nonstandard-location.patch
@@ -0,0 +1,31 @@
+From 803b6cf6d90de24d42906246c60d81c5156574e0 Mon Sep 17 00:00:00 2001
+From: Alexander Golubev <fatzer2@gmail.com>
+Date: Mon, 16 Mar 2026 02:05:43 +0300
+Subject: [PATCH] Fix build with tqt in a nonstandard location
+
+Otherwise the build were failing with:
+
+  ld: cannot find -ltqt-mt: No such file or directory
+
+-ltqt-mt origins from DCOP-shared.
+
+Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
+---
+ src/CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 8d4feb3..56707ef 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -10,6 +10,7 @@ include_directories(
+ )
+ 
+ link_directories(
++  ${TQT_LIBRARY_DIRS}
+   ${TDE_LIB_DIR}
+ )
+ 
+-- 
+2.52.0
+
diff --git a/trinity-apps/soundkonverter/metadata.xml b/trinity-apps/soundkonverter/metadata.xml
new file mode 100644
index 00000000..689e1534
--- /dev/null
+++ b/trinity-apps/soundkonverter/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="project">
+    <email>team-gentoo@trinitydesktop.org</email>
+    <name>Trinity Gentoo ebuilds project</name>
+  </maintainer>
+</pkgmetadata>
diff --git a/trinity-apps/soundkonverter/soundkonverter-14.1.5.ebuild b/trinity-apps/soundkonverter/soundkonverter-14.1.5.ebuild
new file mode 100644
index 00000000..ad223a5e
--- /dev/null
+++ b/trinity-apps/soundkonverter/soundkonverter-14.1.5.ebuild
@@ -0,0 +1,66 @@
+# Copyright 2026 The Trinity Desktop Project
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+TRINITY_EXTRAGEAR_PACKAGING="yes"
+TRINITY_HANDBOOK="optional"
+
+TRINITY_MODULE_TYPE="applications/multimedia"
+inherit trinity-base-2 optfeature
+
+DESCRIPTION="A frontend to various audio converters"
+HOMEPAGE="https://trinitydesktop.org/"
+
+LICENSE="GPL-2+"
+SLOT="14"
+if [[ ${PV} != *9999* ]] ; then
+	KEYWORDS="~amd64 ~arm64 ~x86"
+fi
+DEPEND="
+	media-libs/taglib:=
+	media-sound/cdparanoia
+"
+RDEPEND="$DEPEND"
+
+PATCHES=(
+	"${FILESDIR}/${P}-Fix-build-with-tqt-in-a-nonstandard-location.patch"
+)
+
+pkg_postinst() {
+	optfeature_header "Install optional backends to support specific formats:"
+	optfeature "ac3" media-libs/aften
+	optfeature "aiff" media-sound/sox
+	optfeature "ape" media-sound/mac
+	optfeature "bonk" media-sound/bonk
+	optfeature "flac" media-libs/flac media-sound/flake
+	optfeature "m4a" media-libs/faac
+	optfeature "midi" media-sound/timidity++
+	optfeature "mp3" media-sound/lame media-sound/toolame media-sound/twolame
+	optfeature "musepack" media-sound/musepack-tools
+	optfeature "shorten" media-sound/shorten
+	optfeature "speex" media-libs/speex[utils]
+	optfeature "tta" media-sound/ttaenc
+	optfeature "vorbis" media-sound/vorbis-tools
+	optfeature "wavpack" media-sound/wavpack
+	# Not listed:
+	# ofs ofr (OptimFROG) - propietary http://losslessaudio.org/
+	# lac   - dead and proprietary http://www.lossless-audio.com
+	# lpack - dead and proprietary http://www.nue.tu-berlin.de/wer/liebchen/lpac.html
+
+	optfeature_header "Install optional backends to support multiple formats:"
+	optfeature "mplayer (decoding only)" media-video/mplayer
+	optfeature "ffmpeg" media-video/ffmpeg
+
+	optfeature_header "Install optional backends to support replaygain in specific formats:"
+	optfeature "m4a" media-sound/aacgain
+	optfeature "mp3" media-sound/mp3gain
+	optfeature "vorbis" media-sound/vorbisgain
+	# Not listed:
+	# flac - requires media-libs/flac, the same that required to support the format
+	# wavpack - requires media-sound/wavpack, the same that required to support format
+	# musepack - requires replaygain from outdated media-sound/musepack-tools
+
+	optfeature_header "Other"
+	optfeature "alternative tool to rip audio CDs (instead of cdparanoia)" app-cdr/cdrtools
+}
diff --git a/trinity-apps/soundkonverter/soundkonverter-9999.ebuild b/trinity-apps/soundkonverter/soundkonverter-9999.ebuild
new file mode 100644
index 00000000..9531c981
--- /dev/null
+++ b/trinity-apps/soundkonverter/soundkonverter-9999.ebuild
@@ -0,0 +1,62 @@
+# Copyright 2026 The Trinity Desktop Project
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+TRINITY_EXTRAGEAR_PACKAGING="yes"
+TRINITY_HANDBOOK="optional"
+
+TRINITY_MODULE_TYPE="applications/multimedia"
+inherit trinity-base-2 optfeature
+
+DESCRIPTION="A frontend to various audio converters"
+HOMEPAGE="https://trinitydesktop.org/"
+
+LICENSE="GPL-2+"
+SLOT="14"
+if [[ ${PV} != *9999* ]] ; then
+	KEYWORDS="~amd64 ~arm64 ~x86"
+fi
+DEPEND="
+	media-libs/taglib:=
+	media-sound/cdparanoia
+"
+RDEPEND="$DEPEND"
+
+pkg_postinst() {
+	optfeature_header "Install optional backends to support specific formats:"
+	optfeature "ac3" media-libs/aften
+	optfeature "aiff" media-sound/sox
+	optfeature "ape" media-sound/mac
+	optfeature "bonk" media-sound/bonk
+	optfeature "flac" media-libs/flac media-sound/flake
+	optfeature "m4a" media-libs/faac
+	optfeature "midi" media-sound/timidity++
+	optfeature "mp3" media-sound/lame media-sound/toolame media-sound/twolame
+	optfeature "musepack" media-sound/musepack-tools
+	optfeature "shorten" media-sound/shorten
+	optfeature "speex" media-libs/speex[utils]
+	optfeature "tta" media-sound/ttaenc
+	optfeature "vorbis" media-sound/vorbis-tools
+	optfeature "wavpack" media-sound/wavpack
+	# Not listed:
+	# ofs ofr (OptimFROG) - propietary http://losslessaudio.org/
+	# lac   - dead and proprietary http://www.lossless-audio.com
+	# lpack - dead and proprietary http://www.nue.tu-berlin.de/wer/liebchen/lpac.html
+
+	optfeature_header "Install optional backends to support multiple formats:"
+	optfeature "mplayer (decoding only)" media-video/mplayer
+	optfeature "ffmpeg" media-video/ffmpeg
+
+	optfeature_header "Install optional backends to support replaygain in specific formats:"
+	optfeature "m4a" media-sound/aacgain
+	optfeature "mp3" media-sound/mp3gain
+	optfeature "vorbis" media-sound/vorbisgain
+	# Not listed:
+	# flac - requires media-libs/flac, the same that required to support the format
+	# wavpack - requires media-sound/wavpack, the same that required to support format
+	# musepack - requires replaygain from outdated media-sound/musepack-tools
+
+	optfeature_header "Other"
+	optfeature "alternative tool to rip audio CDs (instead of cdparanoia)" app-cdr/cdrtools
+}
-- 
cgit v1.2.3

