[arch-commits] Commit in qt5-doc/repos (kde-unstable-any kde-unstable-any/PKGBUILD)

2020-02-28 Thread Antonio Rojas via arch-commits
Date: Friday, February 28, 2020 @ 08:09:46
  Author: arojas
Revision: 376378

archrelease: copy kde-unstable to kde-unstable-any

Added:
  qt5-doc/repos/kde-unstable-any/
  qt5-doc/repos/kde-unstable-any/PKGBUILD
(from rev 376377, qt5-doc/kde-unstable/PKGBUILD)

--+
 PKGBUILD |   77 +
 1 file changed, 77 insertions(+)

Copied: qt5-doc/repos/kde-unstable-any/PKGBUILD (from rev 376377, 
qt5-doc/kde-unstable/PKGBUILD)
===
--- kde-unstable-any/PKGBUILD   (rev 0)
+++ kde-unstable-any/PKGBUILD   2020-02-28 08:09:46 UTC (rev 376378)
@@ -0,0 +1,77 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+# Contributor: Michael Hansen 
+
+pkgbase=qt5-doc
+pkgname=(qt5-doc qt5-examples)
+_qtver=5.15.0-beta1
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('any')
+url='https://www.qt.io'
+license=('GPL3' 'LGPL3' 'FDL' 'custom')
+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/development_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz;)
+sha256sums=('94a02e3e1879f7492340de675b65b9b98a671698063d28c97e91b78098724548')
+
+prepare() {
+  cd ${_pkgfqn}
+
+  ln -s /usr/bin qttools/
+  ln -s /usr/bin/{rcc,uic,moc} qtbase/bin/
+
+  sed -e 's|QMAKE_PYTHON2 = python|QMAKE_PYTHON2 = python2|' -i 
qtwebengine/mkspecs/features/functions.prf # Use python2
+}
+
+build() {
+  cd ${_pkgfqn}
+
+  QMAKE_PYTHON2=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 \
+-nomake examples
+  make docs
+}
+
+package_qt5-doc() {
+  pkgdesc='A cross-platform application and UI framework (Documentation)'
+  depends=('qt5-base')
+
+  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}
+}
+
+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
+}


[arch-commits] Commit in qt5-doc/repos (kde-unstable-any kde-unstable-any/PKGBUILD)

2019-10-09 Thread Antonio Rojas via arch-commits
Date: Wednesday, October 9, 2019 @ 12:19:07
  Author: arojas
Revision: 364234

archrelease: copy kde-unstable to kde-unstable-any

Added:
  qt5-doc/repos/kde-unstable-any/
  qt5-doc/repos/kde-unstable-any/PKGBUILD
(from rev 364233, qt5-doc/kde-unstable/PKGBUILD)

--+
 PKGBUILD |   77 +
 1 file changed, 77 insertions(+)

Copied: qt5-doc/repos/kde-unstable-any/PKGBUILD (from rev 364233, 
qt5-doc/kde-unstable/PKGBUILD)
===
--- kde-unstable-any/PKGBUILD   (rev 0)
+++ kde-unstable-any/PKGBUILD   2019-10-09 12:19:07 UTC (rev 364234)
@@ -0,0 +1,77 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+# Contributor: Michael Hansen 
+
+pkgbase=qt5-doc
+pkgname=(qt5-doc qt5-examples)
+_qtver=5.14.0-beta1
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('any')
+url='https://www.qt.io'
+license=('GPL3' 'LGPL3' 'FDL' 'custom')
+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/development_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz;)
+sha256sums=('f07cfc26762244bd343190b1b2e8b22708196f017024d6ab59f7fe1c8432f6b3')
+
+prepare() {
+  cd ${_pkgfqn}
+
+  ln -s /usr/bin qttools/
+  ln -s /usr/bin/{rcc,uic,moc} qtbase/bin/
+
+  sed -e 's|QMAKE_PYTHON2 = python|QMAKE_PYTHON2 = python2|' -i 
qtwebengine/mkspecs/features/functions.prf # Use python2
+}
+
+build() {
+  cd ${_pkgfqn}
+
+  QMAKE_PYTHON2=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 \
+-nomake examples
+  make docs
+}
+
+package_qt5-doc() {
+  pkgdesc='A cross-platform application and UI framework (Documentation)'
+  depends=('qt5-base')
+
+  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}
+}
+
+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
+}


[arch-commits] Commit in qt5-doc/repos (kde-unstable-any kde-unstable-any/PKGBUILD)

2019-03-19 Thread Antonio Rojas via arch-commits
Date: Tuesday, March 19, 2019 @ 13:08:19
  Author: arojas
Revision: 348655

archrelease: copy kde-unstable to kde-unstable-any

Added:
  qt5-doc/repos/kde-unstable-any/
  qt5-doc/repos/kde-unstable-any/PKGBUILD
(from rev 348654, qt5-doc/kde-unstable/PKGBUILD)

--+
 PKGBUILD |   57 +
 1 file changed, 57 insertions(+)

Copied: qt5-doc/repos/kde-unstable-any/PKGBUILD (from rev 348654, 
qt5-doc/kde-unstable/PKGBUILD)
===
--- kde-unstable-any/PKGBUILD   (rev 0)
+++ kde-unstable-any/PKGBUILD   2019-03-19 13:08:19 UTC (rev 348655)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+# Contributor: Michael Hansen 
+
+pkgname=qt5-doc
+_qtver=5.13.0-beta1
+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'
+ 'gperf' 'nss' 'clang')
+groups=('qt' 'qt5')
+_pkgfqn="qt-everywhere-src-${_qtver}"
+source=("https://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz;)
+sha256sums=('23756b4786cf66b0bddb27694a48f4ecb01ec40fed1e26949db0bc57a03557cc')
+
+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
+}
+
+build() {
+  cd ${_pkgfqn}
+
+  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 \
+-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}
+
+# Fix conflicts with qt5-examples
+  rm -r "$pkgdir"/usr/share/doc/qt/examples
+}


[arch-commits] Commit in qt5-doc/repos (kde-unstable-any kde-unstable-any/PKGBUILD)

2018-10-05 Thread Antonio Rojas via arch-commits
Date: Friday, October 5, 2018 @ 14:10:34
  Author: arojas
Revision: 335817

archrelease: copy kde-unstable to kde-unstable-any

Added:
  qt5-doc/repos/kde-unstable-any/
  qt5-doc/repos/kde-unstable-any/PKGBUILD
(from rev 335816, qt5-doc/kde-unstable/PKGBUILD)

--+
 PKGBUILD |   57 +
 1 file changed, 57 insertions(+)

Copied: qt5-doc/repos/kde-unstable-any/PKGBUILD (from rev 335816, 
qt5-doc/kde-unstable/PKGBUILD)
===
--- kde-unstable-any/PKGBUILD   (rev 0)
+++ kde-unstable-any/PKGBUILD   2018-10-05 14:10:34 UTC (rev 335817)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+# Contributor: Michael Hansen 
+
+pkgname=qt5-doc
+_qtver=5.12.0-beta1
+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')
+makedepends=('qt5-tools' 'python2' 'pciutils' 'libxtst' 'libxcursor' 
'libxrandr' 'libxss' 'libxcomposite'
+ 'gperf' 'nss' 'clang')
+groups=('qt' 'qt5')
+_pkgfqn="qt-everywhere-src-${_qtver}"
+source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz;)
+sha256sums=('fb29a8da4a3a8e265fbc03bad64463fd6b4c338a38e664fe854c66e8661bf5d3')
+
+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
+}
+
+build() {
+  cd ${_pkgfqn}
+
+  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 \
+-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}
+
+# Fix conflicts with qt5-examples
+  rm -r "$pkgdir"/usr/share/doc/qt/examples
+}


[arch-commits] Commit in qt5-doc/repos (kde-unstable-any kde-unstable-any/PKGBUILD)

2018-03-01 Thread Antonio Rojas via arch-commits
Date: Thursday, March 1, 2018 @ 20:53:55
  Author: arojas
Revision: 317735

archrelease: copy kde-unstable to kde-unstable-any

Added:
  qt5-doc/repos/kde-unstable-any/
  qt5-doc/repos/kde-unstable-any/PKGBUILD
(from rev 317734, qt5-doc/kde-unstable/PKGBUILD)

--+
 PKGBUILD |   61 +
 1 file changed, 61 insertions(+)

Copied: qt5-doc/repos/kde-unstable-any/PKGBUILD (from rev 317734, 
qt5-doc/kde-unstable/PKGBUILD)
===
--- kde-unstable-any/PKGBUILD   (rev 0)
+++ kde-unstable-any/PKGBUILD   2018-03-01 20:53:55 UTC (rev 317735)
@@ -0,0 +1,61 @@
+# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+# Contributor: Michael Hansen 
+
+pkgname=qt5-doc
+_qtver=5.11.0-beta1
+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')
+makedepends=('qt5-tools' 'python2' 'pciutils' 'libxtst' 'libxcursor' 
'libxrandr' 'libxss' 'libxcomposite'
+ 'gperf' 'nss' 'clang')
+groups=('qt' 'qt5')
+_pkgfqn="qt-everywhere-src-${_qtver}"
+source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz;)
+sha256sums=('4884a2a122da603343f5066147be7be32a9cadc7daa017980bf47731d15699b5')
+
+prepare() {
+  cd ${_pkgfqn}
+  cd qtbase
+   bin/syncqt.pl -version ${_qtver%-*}
+  cd ..
+
+  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
+}
+
+build() {
+  cd ${_pkgfqn}
+
+  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 \
+-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}
+
+# Fix conflicts with qt5-examples
+  rm -r "$pkgdir"/usr/share/doc/qt/examples
+}


[arch-commits] Commit in qt5-doc/repos (kde-unstable-any kde-unstable-any/PKGBUILD)

2017-10-10 Thread Antonio Rojas
Date: Tuesday, October 10, 2017 @ 12:20:55
  Author: arojas
Revision: 307363

archrelease: copy kde-unstable to kde-unstable-any

Added:
  qt5-doc/repos/kde-unstable-any/
  qt5-doc/repos/kde-unstable-any/PKGBUILD
(from rev 307362, qt5-doc/kde-unstable/PKGBUILD)

--+
 PKGBUILD |   57 +
 1 file changed, 57 insertions(+)

Copied: qt5-doc/repos/kde-unstable-any/PKGBUILD (from rev 307362, 
qt5-doc/kde-unstable/PKGBUILD)
===
--- kde-unstable-any/PKGBUILD   (rev 0)
+++ kde-unstable-any/PKGBUILD   2017-10-10 12:20:55 UTC (rev 307363)
@@ -0,0 +1,57 @@
+# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+# Contributor: Michael Hansen 
+
+pkgname=qt5-doc
+_qtver=5.10.0-beta
+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')
+makedepends=('qt5-tools' 'python2' 'pciutils' 'libxtst' 'libxcursor' 
'libxrandr' 'libxss' 'libxcomposite' 'git')
+groups=('qt' 'qt5')
+_pkgfqn="qt-everywhere-src-${_qtver}"
+source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz;)
+sha256sums=('6fdf611b41e65356c14cba26d7e8a109f9d6a91a2a765f38636ee79ec9d21766')
+
+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
+}
+
+build() {
+  cd ${_pkgfqn}
+
+  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 \
+-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}
+
+# Fix conflicts with qt5-examples
+  rm -r "$pkgdir"/usr/share/doc/qt/examples
+}


[arch-commits] Commit in qt5-doc/repos (kde-unstable-any kde-unstable-any/PKGBUILD)

2017-04-21 Thread Antonio Rojas
Date: Friday, April 21, 2017 @ 12:01:06
  Author: arojas
Revision: 293820

archrelease: copy kde-unstable to kde-unstable-any

Added:
  qt5-doc/repos/kde-unstable-any/
  qt5-doc/repos/kde-unstable-any/PKGBUILD
(from rev 293819, qt5-doc/kde-unstable/PKGBUILD)

--+
 PKGBUILD |   65 +
 1 file changed, 65 insertions(+)

Copied: qt5-doc/repos/kde-unstable-any/PKGBUILD (from rev 293819, 
qt5-doc/kde-unstable/PKGBUILD)
===
--- kde-unstable-any/PKGBUILD   (rev 0)
+++ kde-unstable-any/PKGBUILD   2017-04-21 12:01:06 UTC (rev 293820)
@@ -0,0 +1,65 @@
+# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+# Contributor: Michael Hansen 
+
+pkgname=qt5-doc
+_qtver=5.9.0-beta2
+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')
+makedepends=('qt5-tools' 'python2' 'pciutils' 'libxtst' 'libxcursor' 
'libxrandr' 'libxss' 'libxcomposite')
+groups=('qt' 'qt5')
+_pkgfqn="qt-everywhere-opensource-src-${_qtver}"
+source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz;)
+sha256sums=('b74c30cd80474880b4a0c2f0ed6efdbda16ebe72cdc26f2a85bb025a42d5d838')
+
+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' -o -name '*.prf' | xargs sed -i -e 
's|python -c|python2 -c|g' -e 's|python \$|python2 \$|g'
+
+  ln -s /usr/bin qttools/
+  ln -s /usr/bin/{rcc,uic,moc} qtbase/bin/
+
+  # workaround c++11 detection with GCC6
+  sed -e '/requires(c++11)/d' -i qtserialbus/qtserialbus.pro
+
+  # Hack to force using python2
+  cd "$srcdir"
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+}
+
+build() {
+  cd ${_pkgfqn}
+
+  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 \
+-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}
+
+# Fix conflicts with qt5-examples
+  rm -r "$pkgdir"/usr/share/doc/qt/examples
+}


[arch-commits] Commit in qt5-doc/repos (kde-unstable-any kde-unstable-any/PKGBUILD)

2016-12-22 Thread Antonio Rojas
Date: Friday, December 23, 2016 @ 07:10:13
  Author: arojas
Revision: 284497

archrelease: copy kde-unstable to kde-unstable-any

Added:
  qt5-doc/repos/kde-unstable-any/
  qt5-doc/repos/kde-unstable-any/PKGBUILD
(from rev 284496, qt5-doc/kde-unstable/PKGBUILD)

--+
 PKGBUILD |   65 +
 1 file changed, 65 insertions(+)

Copied: qt5-doc/repos/kde-unstable-any/PKGBUILD (from rev 284496, 
qt5-doc/kde-unstable/PKGBUILD)
===
--- kde-unstable-any/PKGBUILD   (rev 0)
+++ kde-unstable-any/PKGBUILD   2016-12-23 07:10:13 UTC (rev 284497)
@@ -0,0 +1,65 @@
+# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+# Contributor: Michael Hansen 
+
+pkgname=qt5-doc
+_qtver=5.8.0-rc
+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')
+makedepends=('qt5-tools' 'python2' 'pciutils' 'libxtst' 'libxcursor' 
'libxrandr' 'libxss')
+groups=('qt' 'qt5')
+_pkgfqn="qt-everywhere-opensource-src-${_qtver}"
+source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz;)
+md5sums=('8f86f89e93f7dc67b4c06d019d99681f')
+
+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' -o -name '*.prf' | xargs sed -i -e 
's|python -c|python2 -c|g' -e 's|python \$|python2 \$|g'
+
+  ln -s /usr/bin qttools/
+  ln -s /usr/bin/{rcc,uic,moc} qtbase/bin/
+
+  # workaround c++11 detection with GCC6
+  sed -e '/requires(c++11)/d' -i qtserialbus/qtserialbus.pro
+
+  # Hack to force using python2
+  cd "$srcdir"
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+}
+
+build() {
+  cd ${_pkgfqn}
+
+  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 \
+-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}
+
+# Fix conflicts with qt5-examples
+  rm -r "$pkgdir"/usr/share/doc/qt/examples
+}


[arch-commits] Commit in qt5-doc/repos (kde-unstable-any kde-unstable-any/PKGBUILD)

2016-06-04 Thread Antonio Rojas
Date: Saturday, June 4, 2016 @ 10:17:02
  Author: arojas
Revision: 268925

archrelease: copy kde-unstable to kde-unstable-any

Added:
  qt5-doc/repos/kde-unstable-any/
  qt5-doc/repos/kde-unstable-any/PKGBUILD
(from rev 268924, qt5-doc/kde-unstable/PKGBUILD)

--+
 PKGBUILD |   66 +
 1 file changed, 66 insertions(+)

Copied: qt5-doc/repos/kde-unstable-any/PKGBUILD (from rev 268924, 
qt5-doc/kde-unstable/PKGBUILD)
===
--- kde-unstable-any/PKGBUILD   (rev 0)
+++ kde-unstable-any/PKGBUILD   2016-06-04 08:17:02 UTC (rev 268925)
@@ -0,0 +1,66 @@
+# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+# Contributor: Michael Hansen 
+
+pkgname=qt5-doc
+_qtver=5.7.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 (Documentation)'
+depends=('qt5-base')
+makedepends=('qt5-tools' 'python2' 'pciutils' 'libxtst' 'libxcursor' 
'libxrandr' 'libxss')
+groups=('qt' 'qt5')
+_pkgfqn="qt-everywhere-opensource-src-${_qtver}"
+source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz;)
+md5sums=('761abe0357af4497090d06303d85794b')
+
+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' -o -name '*.prf' | 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/
+
+  # workaround c++11 detection with GCC6
+  sed -e '/requires(c++11)/d' -i qtserialbus/qtserialbus.pro
+
+  # Hack to force using python2
+  cd "$srcdir"
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+}
+
+build() {
+  cd ${_pkgfqn}
+
+  export PATH="$srcdir/bin:$PATH"
+  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}
+
+# Fix conflicts with qt5-examples
+  rm -r "$pkgdir"/usr/share/doc/qt/examples
+}