void-packages/srcpkgs/qt5-doc/template
2020-09-17 13:12:35 +02:00

47 lines
1.4 KiB
Bash

# Template file for 'qt5-doc'
pkgname=qt5-doc
version=5.15.1
revision=1
wrksrc="qt-everywhere-src-${version}"
hostmakedepends="clang perl pkg-config qt5-devel qt5-plugin-sqlite qt5-tools which"
makedepends="qt5-tools-devel"
depends="qt5-plugin-sqlite qt5>=5.6.0"
homepage="http://qt.io/"
short_desc="A cross-platform application and UI framework (QT5) - Documentation"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3, LGPL-2.1"
distfiles="http://download.qt.io/official_releases/qt/${version%.*}/${version}/single/qt-everywhere-src-${version}.tar.xz"
checksum=44da876057e21e1be42de31facd99be7d5f9f07893e1ea762359bcee0ef64ee9
post_extract() {
rm -rf qttools/{bin,plugins}
ln -s /usr/lib/qt5/bin qttools/
ln -s /usr/lib/qt5/bin/{rcc,uic,moc} qtbase/bin/
}
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
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
}