[arch-commits] Commit in python-qtpy/repos/community-any (PKGBUILD PKGBUILD)
Fabio Castelli
muflone at archlinux.org
Sat Oct 12 18:57:35 UTC 2019
Date: Saturday, October 12, 2019 @ 18:57:34
Author: muflone
Revision: 515272
archrelease: copy trunk to community-any
Added:
python-qtpy/repos/community-any/PKGBUILD
(from rev 515271, python-qtpy/trunk/PKGBUILD)
Deleted:
python-qtpy/repos/community-any/PKGBUILD
----------+
PKGBUILD | 84 +++++++++++++++++++++----------------------------------------
1 file changed, 29 insertions(+), 55 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-12 18:57:21 UTC (rev 515271)
+++ PKGBUILD 2019-10-12 18:57:34 UTC (rev 515272)
@@ -1,55 +0,0 @@
-# Maintainer: Muflone http://www.muflone.com/contacts/english/
-
-pkgbase='python-qtpy'
-_pkgbase='qtpy'
-pkgname=('python-qtpy' 'python2-qtpy')
-pkgver=1.8.0
-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=('f4d5bdeeac2a859ecaf72b52ed6502f00946e255d635911866efa8cbab95238d')
-
-prepare() {
- # Prepare sources for Python 2.x
- cp -r "${_pkgbase}-${pkgver}" "python2-${_pkgbase}-${pkgver}"
- # Fix Python 2.x shebang
- cd "python2-${_pkgbase}-${pkgver}"
- sed -i 's@^#!.*python$@#!/usr/bin/env python2@' "${_pkgbase}/tests/runtests.py"
-}
-
-build() {
- cd "${_pkgbase}-${pkgver}"
- python2 setup.py build
-
- cd "${srcdir}/python2-${_pkgbase}-${pkgver}"
- python setup.py build
-}
-
-package_python2-qtpy() {
- depends=('python2')
- optdepends=('python2-pyqt5: Qt5 Python bindings'
- 'python2-pyqtwebengine: Qt5-WebEngine python bindings'
- 'python2-pyside2: PySide Qt5 Python bindings')
-
- cd "${pkgname}-${pkgver}"
- 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-pyqt5: Qt5 Python bindings'
- 'python-pyqtwebengine: Qt5-WebEngine python bindings'
- 'python-pyside2: PySide Qt5 Python bindings')
-
- cd "${_pkgbase}-${pkgver}"
- python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
- # Install license file
- install -D -m644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
Copied: python-qtpy/repos/community-any/PKGBUILD (from rev 515271, python-qtpy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-12 18:57:34 UTC (rev 515272)
@@ -0,0 +1,29 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+
+pkgname=python-qtpy
+_pkgname='qtpy'
+pkgver=1.9.0
+pkgrel=1
+pkgdesc='Provides an uniform layer to support PyQt5, PyQt4 and PySide with a single codebase'
+arch=('any')
+url="https://github.com/spyder-ide/${_pkgname}/"
+license=('MIT')
+source=("python-${_pkgname}-${pkgver}.tar.gz"::"https://github.com/spyder-ide/${_pkgname}/archive/v${pkgver}.tar.gz")
+sha256sums=('a6783acab8f7f7b04026c7da19c65bf904d69629d06d951cb7b9344468270c5b')
+makedepends=('python' 'python-setuptools')
+depends=('python')
+optdepends=('python-pyqt5: Qt5 Python bindings'
+ 'python-pyqtwebengine: Qt5-WebEngine python bindings'
+ 'python-pyside2: PySide Qt5 Python bindings')
+
+build() {
+ cd "${_pkgname}-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ cd "${_pkgname}-${pkgver}"
+ python 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