new package: kid3

This commit is contained in:
Tee KOBAYASHI 2022-05-03 10:42:32 +09:00 committed by xtkoba
parent d25ca48893
commit 7366ab781e
3 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,29 @@
TERMUX_PKG_HOMEPAGE=https://kid3.kde.org/
TERMUX_PKG_DESCRIPTION="Efficient ID3 tag editor"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.9.1
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/kid3/kid3-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=e5f126697f773dbaa10476a76810ce91c2f3f60025d38688098e075bdb561dca
TERMUX_PKG_DEPENDS="chromaprint, ffmpeg, id3lib, libc++, libflac, libogg, libvorbis, qt5-qtbase, qt5-qtdeclarative, qt5-qtmultimedia, readline, taglib"
TERMUX_PKG_BUILD_DEPENDS="docbook-xsl, qt5-qtbase-cross-tools, qt5-qtdeclarative-cross-tools, qt5-qttools-cross-tools"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DANDROID_NO_TERMUX=OFF
-DWITH_APPS=Qt;CLI
-DWITH_FFMPEG=ON
"
termux_step_post_get_source() {
# I don't want to make a patch for this:
find . -name CMakeLists.txt -o -name '*.cmake' | \
xargs -n 1 sed -i \
-e 's/\([^A-Za-z0-9_]ANDROID\)\([^A-Za-z0-9_]\)/\1_NO_TERMUX\2/g' \
-e 's/\([^A-Za-z0-9_]ANDROID\)$/\1_NO_TERMUX/g'
}
termux_step_pre_configure() {
local DOCBOOK_XSL_VER=$(bash -c ". $TERMUX_SCRIPTDIR/packages/docbook-xsl/build.sh; echo \$TERMUX_PKG_VERSION")
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DWITH_DOCBOOKDIR=$TERMUX_PREFIX/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VER}"
LDFLAGS+=" -Wl,-rpath=$TERMUX_PREFIX/lib/kid3"
}

View File

@ -0,0 +1,11 @@
--- a/src/core/model/kid3application.cpp
+++ b/src/core/model/kid3application.cpp
@@ -928,7 +928,7 @@
taggedFile->closeFileHandle();
}
}
-#if defined Q_OS_LINUX && !defined Q_OS_ANDROID
+#if defined Q_OS_LINUX && !defined Q_OS_ANDROID && !defined __ANDROID__
if (::malloc_trim(0)) {
qDebug("Memory released by malloc_trim()");
}

View File

@ -0,0 +1,11 @@
--- a/src/plugins/acoustidimport/ffmpegfingerprintdecoder.cpp
+++ b/src/plugins/acoustidimport/ffmpegfingerprintdecoder.cpp
@@ -232,7 +232,7 @@
friend class Format;
friend class Converter;
AVCodecContext* m_ptr;
- AVCodec* m_impl;
+ const AVCodec* m_impl;
AVFrame* m_frame;
bool m_opened;
};