mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 20:07:14 +08:00
60 lines
1.5 KiB
Bash
60 lines
1.5 KiB
Bash
source ../qt5.conf
|
|
|
|
pkgname=qt5-doc
|
|
pkgver=${QSubVersion}
|
|
pkgrel=1
|
|
arch=('any')
|
|
url='http://qt-project.org/'
|
|
license=('GPL3' 'LGPL' 'FDL' 'custom')
|
|
pkgdesc='A cross-platform application and UI framework (Documentation)'
|
|
depends=('qt5-base')
|
|
makedepends=('qt5-tools' 'python2' 'pciutils' 'libxtst' 'libxcursor' 'libxrandr' 'libxss')
|
|
groups=('qt5')
|
|
source=( $(getSingleSrc "qt") )
|
|
md5sums=( $(getSum "qt") )
|
|
|
|
prepare() {
|
|
cd $(getPkgName "qt")
|
|
|
|
#ln -s /usr/lib/qt5/bin qttools/
|
|
#ln -s /usr/lib/qt5/bin/{rcc,uic,moc} qtbase/bin/
|
|
|
|
# Hack to force using python2
|
|
cd "$srcdir"
|
|
mkdir -p bin
|
|
ln -s /usr/bin/python2 bin/python
|
|
}
|
|
|
|
build() {
|
|
cd $(getPkgName "qt")
|
|
|
|
export PATH="$srcdir/bin:$PATH"
|
|
PYTHON=/usr/bin/python2 ./configure -confirm-license -opensource \
|
|
-prefix /usr \
|
|
-bindir /usr/lib/qt5/bin \
|
|
-docdir /usr/share/doc/qt5 \
|
|
-headerdir /usr/include/qt5 \
|
|
-archdatadir /usr/lib/qt5 \
|
|
-datadir /usr/share/qt5 \
|
|
-sysconfdir /etc/xdg \
|
|
-examplesdir /usr/share/doc/qt5/examples \
|
|
-plugindir /usr/lib/qt5/plugins \
|
|
-importdir /usr/lib/qt5/imports \
|
|
-qmldir /usr/lib/qt5/qml \
|
|
-testsdir /usr/share/qt5/tests \
|
|
-translationdir /usr/share/qt5/translations
|
|
|
|
make docs
|
|
}
|
|
|
|
package() {
|
|
cd $(getPkgName "qt")
|
|
make 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/qt5/examples
|
|
}
|