Date: Thursday, March 14, 2019 @ 12:24:10
  Author: arojas
Revision: 347951

archrelease: copy trunk to staging-any

Added:
  qt5-examples/repos/staging-any/
  qt5-examples/repos/staging-any/PKGBUILD
    (from rev 347950, qt5-examples/trunk/PKGBUILD)

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

Copied: qt5-examples/repos/staging-any/PKGBUILD (from rev 347950, 
qt5-examples/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD                                (rev 0)
+++ staging-any/PKGBUILD        2019-03-14 12:24:10 UTC (rev 347951)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Andrea Scarpino <and...@archlinux.org>
+# Contributor: Michael Hansen <zrax0111 gmail com>
+
+pkgname=qt5-examples
+_qtver=5.12.2
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('any')
+url='https://www.qt.io'
+license=('GPL3' 'LGPL3' 'FDL' 'custom')
+pkgdesc='Examples and demos from qt5 documentation'
+depends=('qt5-doc')
+groups=('qt' 'qt5')
+_pkgfqn="qt-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz";)
+sha256sums=('59b8cb4e728450b21224dcaaa40eb25bafc5196b6988f2225c394c6b7f881ff5')
+
+package() {
+  _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
+}

Reply via email to