[arch-commits] Commit in python-traitsui/trunk (PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Thu Mar 14 09:03:44 UTC 2019
Date: Thursday, March 14, 2019 @ 09:03:44
Author: aginiewicz
Revision: 440967
upgpkg: python-traitsui 6.0.0-3
python-traitsui: drop python2 support
Modified:
python-traitsui/trunk/PKGBUILD
----------+
PKGBUILD | 35 ++++++-----------------------------
1 file changed, 6 insertions(+), 29 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-03-14 09:01:03 UTC (rev 440966)
+++ PKGBUILD 2019-03-14 09:03:44 UTC (rev 440967)
@@ -1,46 +1,24 @@
# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-pkgbase=python-traitsui
-pkgname=('python2-traitsui' 'python-traitsui')
+pkgname='python-traitsui'
pkgver=6.0.0
-pkgrel=2
+pkgrel=3
pkgdesc="Traits-capable user interfaces"
arch=('any')
url="https://github.com/enthought/traitsui"
license=('BSD')
-makedepends=('python-setuptools' 'python-pyface' 'python2-setuptools' 'python2-pyface')
-
+depends=('python-pyface')
+makedepends=('python-setuptools')
source=("traitsui-${pkgver}.tar.gz::https://github.com/enthought/traitsui/archive/${pkgver}.tar.gz")
-md5sums=('4fd82bf5963f27860601064520f2d840')
+sha256sums=('8ac096486f9a8615ad4c15276e3aaa55810e89ef029d358b1421c26501921f9a')
-prepare() {
- cd "$srcdir"
- cp -a traitsui-${pkgver} traitsui-py2-${pkgver}
-}
-
build() {
- cd "$srcdir"/traitsui-py2-$pkgver
-
- msg "Building Python2"
- python2 setup.py build
-
cd "$srcdir"/traitsui-$pkgver
- msg "Building Python3"
python setup.py build
}
-package_python2-traitsui() {
- depends=('python2-pyface')
- cd "$srcdir"/traitsui-py2-$pkgver
-
- python2 setup.py install --root="$pkgdir"/ --optimize=1
-
- install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python-traitsui() {
- depends=('python-pyface')
+package() {
cd "$srcdir"/traitsui-$pkgver
python setup.py install --root="$pkgdir"/ --optimize=1
@@ -47,4 +25,3 @@
install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
More information about the arch-commits
mailing list