phonon-qt5: update to 4.12.0.

This commit is contained in:
John 2023-12-05 22:26:50 +01:00 committed by John Zimmermann
parent b75db8bc25
commit 1814d3df97
8 changed files with 86 additions and 28 deletions

View File

@ -2234,6 +2234,8 @@ libqca-qt6.so.2 qca-qt6-2.3.8_1
libqt5keychain.so.1 qtkeychain-qt5-0.7.0_1
libphonon4qt5.so.4 phonon-qt5-4.8.3_1
libphonon4qt5experimental.so.4 phonon-qt5-4.8.3_1
libphonon4qt6.so.4 phonon-4.12.0_1
libphonon4qt6experimental.so.4 phonon-4.12.0_1
libtelepathy-qt5.so.0 telepathy-qt5-0.9.5_1
libtelepathy-qt5-service.so.1 telepathy-qt5-0.9.8_1
libtelepathy-qt5-farstream.so.0 telepathy-qt5-farstream-0.9.5_1

1
srcpkgs/phonon-devel Symbolic link
View File

@ -0,0 +1 @@
phonon

1
srcpkgs/phonon-locale Symbolic link
View File

@ -0,0 +1 @@
phonon-qt5

1
srcpkgs/phonon-qt5 Symbolic link
View File

@ -0,0 +1 @@
phonon

View File

@ -1 +1 @@
phonon-qt5
phonon

View File

@ -1,27 +0,0 @@
# Template file for 'phonon-qt5'
pkgname=phonon-qt5
version=4.11.1
revision=2
build_style=cmake
configure_args="-DPHONON_BUILD_PHONON4QT5=ON -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON"
hostmakedepends="extra-cmake-modules qt5-host-tools qt5-devel"
makedepends="glib-devel qt5-devel qt5-tools-devel pulseaudio-devel"
short_desc="Multimedia framework for KDE"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://phonon.kde.org/"
distfiles="${KDE_SITE}/${pkgname%-*}/${version}/${pkgname%-*}-${version}.tar.xz"
checksum=b4431ea2600df8137a717741ad9ebc7f7ec1649fa3e138541d8f42597144de2d
phonon-qt5-devel_package() {
depends="qt5-devel ${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/qt5/mkspecs
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove usr/share/phonon4qt5
vmove usr/lib/qt5/plugins/designer/phononwidgets.so
vmove "usr/lib/*.so"
}
}

80
srcpkgs/phonon/template Normal file
View File

@ -0,0 +1,80 @@
# Template file for 'phonon'
pkgname=phonon
version=4.12.0
revision=1
build_style=cmake
configure_args="$(vopt_bool designerplugin PHONON_BUILD_DESIGNER_PLUGIN)"
hostmakedepends="extra-cmake-modules qt5-host-tools qt5-devel
qt6-base qt6-tools qt6-tools"
makedepends="glib-devel qt5-devel pulseaudio-devel qt6-qt5compat-devel"
depends="phonon-locale"
short_desc="Multimedia framework for KDE"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://phonon.kde.org/"
distfiles="${KDE_SITE}/${pkgname%-*}/${version}/${pkgname%-*}-${version}.tar.xz"
checksum=3287ffe0fbcc2d4aa1363f9e15747302d0b080090fe76e5f211d809ecb43f39a
build_options="designerplugin"
build_options_default=""
if [ -z "$CROSS_BUILD" ]; then
build_options_default="designerplugin"
fi
if [ "$build_option_designerplugin" ]; then
makedepends+=" qt6-tools-devel qt5-tools-devel"
nocross="yes"
fi
post_install() {
if [ "$build_option_designerplugin" ]; then
vmkdir usr/lib/qt6/plugins/designer
mv "${DESTDIR}/usr/lib/qt5/plugins/designer/phonon4qt6widgets.so" \
"${DESTDIR}/usr/lib/qt6/plugins/designer/phonon4qt6widgets.so"
fi
}
phonon-locale_package() {
short_desc+=" - locale files"
pkg_install() {
vmove usr/share/locale
}
}
phonon-devel_package() {
short_desc+=" - development files"
depends="qt6-base-devel phonon>=${version}_${revision}"
pkg_install() {
vmove usr/lib/cmake/phonon4qt6
vmove usr/include/phonon4qt6
vmove usr/lib/pkgconfig/phonon4qt6.pc
vmove "usr/lib/libphonon4qt6*.so"
if [ "$build_option_designerplugin" ]; then
vmove usr/lib/qt6/plugins/designer
fi
}
}
phonon-qt5-devel_package() {
short_desc+=" (Qt5) - development files"
depends="qt5-devel ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include/phonon4qt5
vmove usr/lib/qt5/mkspecs
vmove usr/lib/cmake/phonon4qt5
vmove usr/lib/pkgconfig/phonon4qt5.pc
vmove "usr/lib/libphonon4qt5*.so"
if [ "$build_option_designerplugin" ]; then
vmove usr/lib/qt5/plugins/designer
fi
}
}
phonon-qt5_package() {
short_desc+=" (Qt5)"
depends="phonon-locale>=${version}_${revision}"
pkg_install() {
vmove "usr/lib/libphonon4qt5*.so.*"
}
}