[arch-commits] Commit in python-qtawesome/trunk (PKGBUILD)
Fabio Castelli
muflone at archlinux.org
Sat Oct 12 18:44:49 UTC 2019
Date: Saturday, October 12, 2019 @ 18:44:49
Author: muflone
Revision: 515269
upgpkg: python-qtawesome 0.6.0-1
Modified:
python-qtawesome/trunk/PKGBUILD
----------+
PKGBUILD | 42 +++++++++++-------------------------------
1 file changed, 11 insertions(+), 31 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-12 18:35:15 UTC (rev 515268)
+++ PKGBUILD 2019-10-12 18:44:49 UTC (rev 515269)
@@ -1,45 +1,25 @@
# Maintainer: Muflone http://www.muflone.com/contacts/english/
-pkgbase='python-qtawesome'
-_pkgbase='qtawesome'
-pkgname=('python-qtawesome' 'python2-qtawesome')
-pkgver=0.5.7
+pkgname=python-qtawesome
+_pkgname='qtawesome'
+pkgver=0.6.0
pkgrel=1
pkgdesc='Iconic fonts in PyQt and PySide applications'
-makedepends=('python' 'python-setuptools'
- 'python2' 'python2-setuptools')
arch=('any')
-url="https://github.com/spyder-ide/${_pkgbase}/"
+url="https://github.com/spyder-ide/${_pkgname}/"
license=('MIT')
-source=("${pkgbase}-${pkgver}.tar.gz"::"https://github.com/spyder-ide/${_pkgbase}/archive/v${pkgver}.tar.gz")
-sha256sums=('6a9be868b4f9993ca87ac405dac0d82187e16481ee6baf920ab4bee060efcb24')
+source=("python-${_pkgname}-${pkgver}.tar.gz"::"https://github.com/spyder-ide/${_pkgname}/archive/v${pkgver}.tar.gz")
+sha256sums=('573192ceb76f79f384e8cfb2d5e69ad63ae97cb89711d5e1d2a9373eb6cc2067')
+makedepends=('python' 'python-setuptools')
+depends=('python-six' 'python-qtpy')
-prepare() {
- # Prepare sources for Python 2.x
- cp -r "${_pkgbase}-${pkgver}" "python2-${_pkgbase}-${pkgver}"
-}
-
build() {
- cd "${_pkgbase}-${pkgver}"
- python2 setup.py build
-
- cd "${srcdir}/python2-${_pkgbase}-${pkgver}"
+ cd "${_pkgname}-${pkgver}"
python setup.py build
}
-package_python2-qtawesome() {
- depends=('python2-six' 'python2-qtpy')
-
- cd "${_pkgbase}-${pkgver}"
- python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
- # Install license file
- install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_python-qtawesome() {
- depends=('python-six' 'python-qtpy')
-
- cd "python2-${_pkgbase}-${pkgver}"
+package() {
+ cd "${_pkgname}-${pkgver}"
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
# Install license file
install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
More information about the arch-commits
mailing list