Date: Monday, February 29, 2016 @ 19:08:08 Author: arojas Revision: 260411
archrelease: copy trunk to kde-unstable-any Added: qt5-doc/repos/ qt5-doc/repos/kde-unstable-any/ qt5-doc/repos/kde-unstable-any/PKGBUILD (from rev 260410, qt5-doc/trunk/PKGBUILD) ----------+ PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) Copied: qt5-doc/repos/kde-unstable-any/PKGBUILD (from rev 260410, qt5-doc/trunk/PKGBUILD) =================================================================== --- repos/kde-unstable-any/PKGBUILD (rev 0) +++ repos/kde-unstable-any/PKGBUILD 2016-02-29 18:08:08 UTC (rev 260411) @@ -0,0 +1,54 @@ +# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Andrea Scarpino <and...@archlinux.org> + +pkgname=qt5-doc +_qtver=5.6.0-rc +pkgver=${_qtver/-/} +pkgrel=1 +arch=('any') +url='http://qt-project.org/' +license=('GPL3' 'LGPL' 'FDL' 'custom') +pkgdesc='A cross-platform application and UI framework' +depends=('qt5-base') +makedepends=('qt5-tools' 'python2') +conflicts=('qt') +groups=('qt' 'qt5') +_pkgfqn="qt-everywhere-opensource-src-${_qtver}" +source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz") +md5sums=('7320f21e0aff25aa40d85a9376e15bc9') + +prepare() { + cd ${_pkgfqn} + + # Use python2 for Python 2.x + find . -name '*.py' -exec sed -i \ + 's|#![ ]*/usr/bin/python$|&2|;s|#![ ]*/usr/bin/env python$|&2|' {} + + find -name '*.pro' -o -name '*.pri' | xargs sed -i -e 's|python -c|python2 -c|g' -e 's|python \$|python2 \$|g' + + ln -s /usr/lib/qt/bin qttools/ + ln -s /usr/lib/qt/bin/{rcc,uic,moc} qtbase/bin/ +} + +build() { + cd ${_pkgfqn} + + PYTHON=/usr/bin/python2 ./configure -confirm-license -opensource \ + -prefix /usr \ + -bindir /usr/lib/qt/bin \ + -docdir /usr/share/doc/qt \ + -headerdir /usr/include/qt \ + -archdatadir /usr/lib/qt \ + -datadir /usr/share/qt \ + -sysconfdir /etc/xdg \ + -examplesdir /usr/share/doc/qt/examples + make docs +} + +package() { + cd ${_pkgfqn} + make INSTALL_ROOT="$pkgdir" install_docs + + install -d "$pkgdir"/usr/share/licenses + ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname} +}