mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-23 14:56:16 +00:00
33 lines
1.3 KiB
Bash
33 lines
1.3 KiB
Bash
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.6"
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/kid3/kid3-${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=df4a330b874cace7e84beb6d178316f681d09abb94d368c056de7e749ce4dff8
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="chromaprint, ffmpeg, id3lib, libc++, libflac, libogg, libvorbis, qt6-qtbase, qt6-qtdeclarative, qt6-qtmultimedia, readline, taglib"
|
|
TERMUX_PKG_BUILD_DEPENDS="docbook-xsl, qt6-qtbase-cross-tools, qt6-qtdeclarative-cross-tools, qt6-qttools-cross-tools"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-DANDROID_NO_TERMUX=OFF
|
|
-DBUILD_WITH_QT6=ON
|
|
-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"
|
|
}
|