void-packages/srcpkgs/phonon/template
2019-04-10 23:41:38 -03:00

34 lines
981 B
Bash

# Template file for 'phonon'
pkgname=phonon
version=4.9.1
revision=2
build_style=cmake
configure_args="-Wno-dev -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=TRUE"
hostmakedepends="pkg-config automoc4"
makedepends="glib-devel qt-devel pulseaudio-devel"
short_desc="Multimedia framework for KDE (Qt 4.x)"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://phonon.kde.org/"
distfiles="${KDE_SITE}/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
checksum=67bee986f85ca8b575186c8ba58a85886cb3b1c3567c86a118d56129f221e69c
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt-devel"
fi
post_install() {
# Create compat symlink for QT phonon.
vmkdir usr/lib/qt/plugins
ln -s /usr/lib/kde4/plugins/phonon_backend ${DESTDIR}/usr/lib/qt/plugins
}
phonon-devel_package() {
depends="qt-devel ${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove usr/share/phonon
}
}