qt: Add new subpackage qt-doc

This commit is contained in:
jbu 2015-05-02 02:11:38 +02:00
parent 899f2acf29
commit 524d479773
2 changed files with 17 additions and 9 deletions

1
srcpkgs/qt-doc Symbolic link
View file

@ -0,0 +1 @@
qt

View file

@ -1,19 +1,19 @@
# Template file for 'qt'
pkgname=qt
version=4.8.6
revision=12
revision=13
_distname=qt-everywhere-opensource-src
patch_args="-Np1"
wrksrc=${_distname}-${version}
homepage="http://qt-project.com/"
homepage="http://qt.io/"
short_desc="A cross-platform application and UI framework"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3, LGPL-2.1"
distfiles="http://download.qt-project.org/official_releases/qt/4.8/${version}/${_distname}-${version}.tar.gz"
distfiles="http://download.qt.io/official_releases/qt/4.8/${version}/${_distname}-${version}.tar.gz"
checksum=8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c
nocross=yes
hostmakedepends="pkg-config"
hostmakedepends="sqlite pkg-config"
makedepends="
libressl-devel libpng-devel MesaLib-devel libXrender-devel unixodbc-devel
fontconfig-devel libXi-devel libXv-devel libXinerama-devel libXrandr-devel
@ -34,13 +34,13 @@ do_configure() {
export LD="$CXX"
./configure -confirm-license -opensource \
-prefix /usr -sysconfdir /etc -plugindir /usr/lib/qt/plugins \
-importdir /usr/lib/qt/imports \
-prefix /usr -sysconfdir /etc -docdir /usr/share/doc/qt \
-plugindir /usr/lib/qt/plugins -importdir /usr/lib/qt/imports \
-translationdir /usr/share/qt/translations \
-datadir /usr/share/qt -bindir /usr/lib/qt/bin \
-nomake demos -nomake examples -nomake docs -gtkstyle \
-nomake demos -nomake examples -gtkstyle \
-system-sqlite -no-phonon -no-phonon-backend \
-graphicssystem raster -openssl-linked -silent -no-rpath \
-graphicssystem raster -openssl-linked -silent -no-pch -no-rpath \
-optimized-qmake -reduce-relocations -dbus-linked -no-openvg
}
do_build() {
@ -74,7 +74,7 @@ do_install() {
install -m644 ${FILESDIR}/*.desktop \
${DESTDIR}/usr/share/applications
vinstall LGPL_EXCEPTION.txt 644 usr/share/licenses/qt
vlicense LGPL_EXCEPTION.txt
vmkdir usr/bin
for f in ${DESTDIR}/usr/lib/qt/bin/*; do
@ -82,6 +82,13 @@ do_install() {
done
}
qt-doc_package() {
depends="qt-devel-tools>=${version}_${revision}"
short_desc+=" - Documentation"
pkg_install() {
vmove usr/share/doc/qt
}
}
qt-designer_package() {
depends="hicolor-icon-theme"
short_desc+=" - GUI designer"