void-packages/srcpkgs/qt5-doc/template

50 lines
1.6 KiB
Bash

# Template file for 'qt5-doc'
pkgname=qt5-doc
version=5.10.1
revision=1
wrksrc="qt-everywhere-src-${version}"
hostmakedepends="pkg-config qt5-tools qt5-qmake qt5-host-tools qt5-plugin-sqlite
qt5-declarative qt5-devel libxcb-devel"
makedepends="libxcb-devel qt5-devel qt5-tools-devel"
depends="qt5>=5.6.0 qt5-plugin-sqlite"
homepage="http://qt.io/"
short_desc="A cross-platform application and UI framework (QT5) - Documentation"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3, LGPL-2.1"
distfiles="http://download.qt.io/official_releases/qt/${version%.*}/${version}/single/qt-everywhere-src-${version}.tar.xz"
checksum=05ffba7b811b854ed558abf2be2ddbd3bb6ddd0b60ea4b5da75d277ac15e740a
post_extract() {
rm -rf qttools/{bin,plugins}
# Tools are expected to be found in qttools/bin
ln -sf /usr/lib/qt5/bin qttools/
# Plugins are expected to be found in qttools/plugins
ln -sf /usr/lib/qt5/plugins qttools/
}
do_build() {
export LD="$CXX"
unset CPP AR AS RANLIB
./configure -confirm-license -opensource \
-prefix /usr \
-bindir /usr/lib/qt5/bin \
-datadir /usr/share/qt5 \
-headerdir /usr/include/qt5 \
-sysconfdir /etc/xdg \
-plugindir /usr/lib/qt5/plugins \
-docdir /usr/share/doc/qt5 \
-importdir /usr/lib/qt5/imports \
-translationdir /usr/share/qt5/translations \
-examplesdir /usr/share/qt5/examples \
-archdatadir /usr/lib/qt5 \
-nomake examples \
-qt-xcb
make ${makejobs} docs
}
do_install() {
make INSTALL_ROOT="$DESTDIR" install_docs
# Remove examples docs as they are contained in qt5-examples.
rm -rf ${DISTDIR}/usr/share/qt5/examples
}