48 lines
1.6 KiB
Bash
48 lines
1.6 KiB
Bash
|
# Template file for 'qt5-doc'
|
||
|
pkgname=qt5-doc
|
||
|
version=5.6.0
|
||
|
revision=1
|
||
|
wrksrc="qt-everywhere-opensource-src-${version}"
|
||
|
hostmakedepends="python perl pkg-config qt5 qt5-tools qt5-qmake qt5-plugin-sqlite"
|
||
|
makedepends="qt5-devel qt5-tools-devel"
|
||
|
depends="qt5>=5.6.0 qt5-plugin-sqlite"
|
||
|
nocross=yes
|
||
|
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-opensource-src-${version}.tar.xz"
|
||
|
checksum=76a95cf6c1503290f75a641aa25079cd0c5a8fcd7cff07ddebff80a955b07de7
|
||
|
|
||
|
post_extract() {
|
||
|
# The file /usr/include/qt5/QtCore/qconfig.h is expected
|
||
|
# to reside in src/corelib/global/qconfig.h as well
|
||
|
ln -s /usr/include/qt5/QtCore/qconfig.h ${wrksrc}/qtbase/src/corelib/global/
|
||
|
}
|
||
|
do_build() {
|
||
|
export LD="$CXX"
|
||
|
unset CPP AR AS RANLIB
|
||
|
# Tools are expected to be found in qttools/bin
|
||
|
ln -sf /usr/lib/qt5/bin qttools/
|
||
|
# Some binaries are expected to be found in qtbase/bin
|
||
|
ln -sf /usr/lib/qt5/bin/{rcc,uic,moc} qtbase/bin/
|
||
|
|
||
|
./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 -qt-xcb
|
||
|
|
||
|
make ${makejobs} docs
|
||
|
}
|
||
|
do_install() {
|
||
|
make INSTALL_ROOT="$DESTDIR" install_docs
|
||
|
}
|