mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
extra/qt5-doc to 5.13.0-1
This commit is contained in:
parent
efe4d01740
commit
4e740e7425
1 changed files with 37 additions and 14 deletions
|
@ -5,21 +5,20 @@
|
|||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - skip qtwebengine on v5
|
||||
|
||||
pkgname=qt5-doc
|
||||
_qtver=5.12.4
|
||||
pkgbase=qt5-doc
|
||||
pkgname=(qt5-doc qt5-examples)
|
||||
_qtver=5.13.0
|
||||
pkgver=${_qtver/-/}
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
url='https://www.qt.io'
|
||||
license=('GPL3' 'LGPL3' 'FDL' 'custom')
|
||||
pkgdesc='A cross-platform application and UI framework (Documentation)'
|
||||
depends=('qt5-base')
|
||||
makedepends=('qt5-tools' 'python2' 'pciutils' 'libxtst' 'libxcursor' 'libxrandr' 'libxss' 'libxcomposite'
|
||||
makedepends=('qt5-tools' 'python2' 'python' 'pciutils' 'libxtst' 'libxcursor' 'libxrandr' 'libxss' 'libxcomposite'
|
||||
'gperf' 'nss' 'clang')
|
||||
groups=('qt' 'qt5')
|
||||
_pkgfqn="qt-everywhere-src-${_qtver}"
|
||||
source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz")
|
||||
sha256sums=('85da5e0ee498759990180d5b8192efaa6060a313c5018b772f57d446bdd425e1')
|
||||
sha256sums=('2cba31e410e169bd5cdae159f839640e672532a4687ea0f265f686421e0e86d6')
|
||||
|
||||
prepare() {
|
||||
cd ${_pkgfqn}
|
||||
|
@ -27,18 +26,14 @@ prepare() {
|
|||
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
|
||||
sed -e 's|QMAKE_PYTHON2 = python|QMAKE_PYTHON2 = python2|' -i qtwebengine/mkspecs/features/functions.prf # Use python2
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${_pkgfqn}
|
||||
|
||||
[[ $CARCH == "arm" ]] && CONFIG="-skip qtwebengine"
|
||||
export PATH="$srcdir/bin:$PATH"
|
||||
PYTHON=/usr/bin/python2 ./configure -confirm-license -opensource \
|
||||
QMAKE_PYTHON2=python2 ./configure -confirm-license -opensource \
|
||||
-prefix /usr \
|
||||
-docdir /usr/share/doc/qt \
|
||||
-headerdir /usr/include/qt \
|
||||
|
@ -49,10 +44,38 @@ build() {
|
|||
make docs
|
||||
}
|
||||
|
||||
package() {
|
||||
package_qt5-doc() {
|
||||
pkgdesc='A cross-platform application and UI framework (Documentation)'
|
||||
depends=('qt5-base')
|
||||
|
||||
cd ${_pkgfqn}
|
||||
make -j1 INSTALL_ROOT="$pkgdir" install_docs
|
||||
make INSTALL_ROOT="$pkgdir" install_docs
|
||||
|
||||
install -d "$pkgdir"/usr/share/licenses
|
||||
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
|
||||
}
|
||||
|
||||
package_qt5-examples() {
|
||||
pkgdesc='Examples and demos from qt5 documentation'
|
||||
depends=('qt5-doc')
|
||||
|
||||
_base="$pkgdir"/usr/share/doc/qt/examples
|
||||
|
||||
# The various example dirs have conflicting .pro files, but
|
||||
# QtCreator requires them to be in the same top-level directory.
|
||||
# Matching the Qt5 installer, only the qtbase project is kept.
|
||||
mkdir -p $_base
|
||||
cp ${_pkgfqn}/qtbase/examples/examples.pro $_base
|
||||
|
||||
_fdirs=$(find "${_pkgfqn}" -maxdepth 2 -type d -name examples)
|
||||
for _dir in $_fdirs; do
|
||||
_mod=$(basename ${_dir%/examples})
|
||||
|
||||
if [ -e "$_dir/README" ]; then
|
||||
cp $_dir/README $_dir/README.$_mod
|
||||
fi
|
||||
|
||||
# mkdir $_base/$_mod
|
||||
cp -rn $_dir/* $_base
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue