-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
46 lines (41 loc) · 1.39 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Template file for 'qt5-doc'
pkgname=qt5-doc
version=5.15.11
revision=1
hostmakedepends="clang perl pkg-config qt5-devel qt5-plugin-sqlite qt5-tools which python3"
makedepends="qt5-tools-devel gperf nss"
depends="qt5-plugin-sqlite qt5>=5.6.0"
short_desc="Cross-platform application and UI framework (QT5) - Documentation"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GFDL-1.3-only"
homepage="https://qt.io/"
distfiles="https://download.qt.io/official_releases/qt/${version%.*}/${version}/single/qt-everywhere-opensource-src-${version}.tar.xz"
checksum=7426b1eaab52ed169ce53804bdd05dfe364f761468f888a0f15a308dc1dc2951
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
}