[arch-commits] Commit in python-qtpy/repos (3 files)

Fabio Castelli muflone at archlinux.org
Sat Jan 28 12:18:06 UTC 2017


    Date: Saturday, January 28, 2017 @ 12:18:05
  Author: muflone
Revision: 209289

db-move: moved python-qtpy from [community-testing] to [community] (any)

Added:
  python-qtpy/repos/community-any/
  python-qtpy/repos/community-any/PKGBUILD
    (from rev 209288, python-qtpy/repos/community-testing-any/PKGBUILD)
Deleted:
  python-qtpy/repos/community-testing-any/

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

Copied: python-qtpy/repos/community-any/PKGBUILD (from rev 209288, python-qtpy/repos/community-testing-any/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-01-28 12:18:05 UTC (rev 209289)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+
+pkgbase='python-qtpy'
+_pkgbase='qtpy'
+pkgname=('python-qtpy' 'python2-qtpy')
+pkgver=1.2.1
+pkgrel=1
+pkgdesc='Provides an uniform layer to support PyQt5, PyQt4 and PySide with a single codebase'
+makedepends=('python' 'python-setuptools'
+             'python2' 'python2-setuptools')
+arch=('any')
+url="https://github.com/spyder-ide/${pkgbase}/"
+license=('MIT')
+source=("${pkgbase}-${pkgver}.tar.gz"::"https://github.com/spyder-ide/${_pkgbase}/archive/v${pkgver}.tar.gz")
+sha256sums=('b13bba2cc7a8cc5530f83b0960c1804cc338ec6939bdc9a9be11e2af29558075')
+
+package_python2-qtpy() {
+  depends=('python2')
+  optdepends=('python2-pyqt4: Qt4 Python bindings'
+              'python2-pyqt5: Qt5 Python bindings'
+              'python2-pyside: PySide Qt4 Python bindings')
+
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python2 setup.py build
+  python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+  # Install license file
+  install -D -m644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python-qtpy() {
+  depends=('python')
+  optdepends=('python-pyqt4: Qt4 Python bindings'
+              'python-pyqt5: Qt5 Python bindings'
+              'python-pyside: PySide Qt4 Python bindings')
+
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python3 setup.py build
+  python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+  # Install license file
+  install -D -m644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list