[arch-commits] Commit in qt5-examples/repos (testing-any testing-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Thu Jun 9 08:35:35 UTC 2016


    Date: Thursday, June 9, 2016 @ 10:35:35
  Author: fyan
Revision: 269192

archrelease: copy trunk to testing-any

Added:
  qt5-examples/repos/testing-any/
  qt5-examples/repos/testing-any/PKGBUILD
    (from rev 269191, qt5-examples/trunk/PKGBUILD)

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

Copied: qt5-examples/repos/testing-any/PKGBUILD (from rev 269191, qt5-examples/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2016-06-09 08:35:35 UTC (rev 269192)
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Michael Hansen <zrax0111 gmail com>
+
+pkgname=qt5-examples
+_qtver=5.6.1
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('any')
+url='http://qt-project.org/'
+license=('GPL3' 'LGPL' 'FDL' 'custom')
+pkgdesc='Examples and demos from qt5 documentation'
+depends=('qt5-doc')
+conflicts=('qt')
+groups=('qt' 'qt5')
+_pkgfqn="qt-everywhere-opensource-src-${_qtver}"
+source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz")
+md5sums=('d647574345c45b5ab8b41b2d46efffb9')
+
+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
+
+    # Don't overwrite existing examples.pro file
+      mkdir $_base/$_mod
+      cp -rn $_dir/* $_base/$_mod
+  done
+}



More information about the arch-commits mailing list