2017-06-09 12:24:22 +00:00
|
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
# Contributor: Michael Hansen <zrax0111 gmail com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2018-01-12 04:53:57 +00:00
|
|
|
# - skip qtwebengine on v5
|
2018-12-10 19:19:04 +00:00
|
|
|
# - patch for bundled gn
|
2017-06-09 12:24:22 +00:00
|
|
|
|
|
|
|
pkgname=qt5-doc
|
2018-12-10 13:21:37 +00:00
|
|
|
_qtver=5.12.0
|
2017-06-09 12:24:22 +00:00
|
|
|
pkgver=${_qtver/-/}
|
|
|
|
pkgrel=1
|
|
|
|
arch=('any')
|
|
|
|
url='http://qt-project.org/'
|
|
|
|
license=('GPL3' 'LGPL3' 'FDL' 'custom')
|
|
|
|
pkgdesc='A cross-platform application and UI framework (Documentation)'
|
|
|
|
depends=('qt5-base')
|
2018-05-25 18:40:05 +00:00
|
|
|
makedepends=('qt5-tools' 'python2' 'pciutils' 'libxtst' 'libxcursor' 'libxrandr' 'libxss' 'libxcomposite'
|
|
|
|
'gperf' 'nss' 'clang')
|
2017-06-09 12:24:22 +00:00
|
|
|
groups=('qt' 'qt5')
|
2017-12-13 21:16:06 +00:00
|
|
|
_pkgfqn="qt-everywhere-src-${_qtver}"
|
2018-12-10 19:19:04 +00:00
|
|
|
source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz"
|
|
|
|
'0001-Add-ARM-headers-back.patch')
|
|
|
|
sha256sums=('356f42d9087718f22f03d13d0c2cdfb308f91dc3cf0c6318bed33f2094cd9d6c'
|
|
|
|
'7fbafe97a1e6b607dbd9325f426217fd7051d4d6c8dc33df1cc388f416007c4d')
|
2017-06-09 12:24:22 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd ${_pkgfqn}
|
|
|
|
|
|
|
|
ln -s /usr/bin qttools/
|
|
|
|
ln -s /usr/bin/{rcc,uic,moc} qtbase/bin/
|
|
|
|
|
|
|
|
# Hack to force using python2
|
|
|
|
cd "$srcdir"
|
|
|
|
mkdir -p bin
|
|
|
|
ln -s /usr/bin/python2 bin/python
|
2018-12-10 19:19:04 +00:00
|
|
|
|
|
|
|
patch -p1 -d ${_pkgfqn}/qtwebengine/src/3rdparty/gn -i "$srcdir"/0001-Add-ARM-headers-back.patch
|
2017-06-09 12:24:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${_pkgfqn}
|
|
|
|
|
2018-01-12 04:53:57 +00:00
|
|
|
[[ $CARCH == "arm" ]] && CONFIG="-skip qtwebengine"
|
2017-06-09 12:24:22 +00:00
|
|
|
export PATH="$srcdir/bin:$PATH"
|
|
|
|
PYTHON=/usr/bin/python2 ./configure -confirm-license -opensource \
|
|
|
|
-prefix /usr \
|
|
|
|
-docdir /usr/share/doc/qt \
|
|
|
|
-headerdir /usr/include/qt \
|
|
|
|
-archdatadir /usr/lib/qt \
|
|
|
|
-datadir /usr/share/qt \
|
|
|
|
-sysconfdir /etc/xdg \
|
2018-01-12 04:53:57 +00:00
|
|
|
-examplesdir /usr/share/doc/qt/examples $CONFIG
|
2017-06-09 12:24:22 +00:00
|
|
|
make docs
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${_pkgfqn}
|
|
|
|
make -j1 INSTALL_ROOT="$pkgdir" install_docs
|
|
|
|
|
|
|
|
install -d "$pkgdir"/usr/share/licenses
|
|
|
|
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
|
|
|
|
|
|
|
|
# Fix conflicts with qt5-examples
|
|
|
|
rm -r "$pkgdir"/usr/share/doc/qt/examples
|
|
|
|
}
|