void-packages/srcpkgs/qt5-webkit/template
Alessio Sergi 5f18cb5083 qt5-webkit: use gstreamer1
Actually, you can just use one backend: gstreamer (0.10 or 1) or
qtmultimedia (which in our case is gstreamer anyway).

Also, qt5-webkit was using gstreamer0.10 while qt5-multimedia is using
gstreamer1, so using both of them in the same application was not possible.

Should fix #4360.
2016-06-23 12:19:21 +02:00

37 lines
1.2 KiB
Bash

# Template file for 'qt5-webkit'
pkgname=qt5-webkit
version=5.6.1
revision=3
build_style=qmake
wrksrc=qtwebkit-opensource-src-${version}
hostmakedepends="bison flex gperf perl python ruby pkg-config"
makedepends="libwebp-devel libxslt-devel libXcomposite-devel sqlite-devel
gst-plugins-base1-devel qt5-declarative-devel qt5-location-devel
qt5-sensors-devel qt5-webchannel-devel"
short_desc="A cross-platform application and UI framework (Qt5) - WebKit2 component"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3, LGPL-2.1"
homepage="https://www.qt.io/"
distfiles="https://download.qt.io/community_releases/${version%.*}/${version}/qtwebkit-opensource-src-${version}.tar.xz"
checksum=f5cfbfa5fad2b65a9be907d426f99694b86a04c3bb5a8814b21bd0ade4c672aa
pre_configure() {
# Generate headers
syncqt.pl-qt5 -version 5.6.0 Source/sync.profile
}
post_install() {
# QMAKE_PRL_BUILD_DIR contains a reference the build dir; drop it
find ${DESTDIR}/usr/lib -type f -name '*.prl' -exec \
sed -i "{}" -e "/^QMAKE_PRL_BUILD_DIR/d" \;
}
qt5-webkit-devel_package() {
short_desc+=" (development)"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/*.prl
vmove usr/lib/pkgconfig
}
}