flacon: update to 12.0.0, switch to qt6

This commit is contained in:
Mateusz Sylwestrzak 2025-02-25 21:42:56 +01:00 committed by classabbyamp
parent 457620c821
commit a6a3a55f9e

View file

@ -1,10 +1,11 @@
# Template file for 'flacon'
pkgname=flacon
version=9.0.0
version=12.0.0
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="qt5-tools-devel uchardet-devel taglib-devel"
configure_args="-DUSE_QT6=ON -DUSE_QT5=OFF"
hostmakedepends="pkg-config qt6-tools qt6-base"
makedepends="qt6-tools-devel qt6-widgets uchardet-devel taglib-devel"
depends="ffmpeg hicolor-icon-theme"
short_desc="Audio File Encoder. Splits audio tracks into separate tracks"
maintainer="travankor <travankor@tuta.io>"
@ -12,11 +13,14 @@ license="LGPL-2.1-or-later"
homepage="https://flacon.github.io/"
changelog="https://flacon.github.io/changelog/"
distfiles="https://github.com/Flacon/flacon/archive/v${version}.tar.gz"
checksum=a83d5fe297ceb6408b7f63c56a6be336fe1c6d06ebedcc0c84a3f7dd234140e4
checksum=78199ff925b7cd0ffeb628d47909ca4172f8ff0d8fd8192bb537e0c012e6f4c6
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake"
fi
post_configure() {
if [ "$CROSS_BUILD" ]; then
# use host lrelease instead of target binary which breaks compilation
vsed -i build/build.ninja -e "s|${XBPS_CROSS_BASE}/usr/lib.*/qt6/bin/lrelease|/usr/lib/qt6/bin/lrelease|g"
fi
}
post_install() {
vdoc "${FILESDIR}/README.voidlinux"