[arch-commits] Commit in python-apptools/trunk (PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Thu Mar 14 09:01:01 UTC 2019
Date: Thursday, March 14, 2019 @ 09:01:00
Author: aginiewicz
Revision: 440965
upgpkg: python-apptools 4.4.0-4
python-apptools: drop python2 support
Modified:
python-apptools/trunk/PKGBUILD
----------+
PKGBUILD | 45 ++++++++-------------------------------------
1 file changed, 8 insertions(+), 37 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-03-14 08:57:52 UTC (rev 440964)
+++ PKGBUILD 2019-03-14 09:01:00 UTC (rev 440965)
@@ -1,54 +1,26 @@
# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-pkgbase=python-apptools
-pkgname=('python2-apptools' 'python-apptools')
+pkgname='python-apptools'
pkgver=4.4.0
-pkgrel=3
+pkgrel=4
pkgdesc="Application tools"
arch=('any')
url="https://github.com/enthought/apptools"
license=('BSD')
-makedepends=('python-setuptools' 'python-traits' 'python2-setuptools' 'python2-traits')
-
+depends=('python-traits')
+makedepends=('python-setuptools')
+optdepends=('python-configobj: for apptools.preferences package'
+ 'python-traitsui: for user interface to apptools')
source=("apptools-$pkgver.tar.gz::https://github.com/enthought/apptools/archive/${pkgver}.tar.gz")
-md5sums=('7ca7ec191d20533ff7106f3ca3f951c1')
+sha256sums=('00c4e6cb8c8cd59ff0464fe59de356aa6e8a2bd5a106f5841db36dab7f782a7e')
-prepare() {
- cd "$srcdir"
- cp -a apptools-${pkgver} apptools-py2-${pkgver}
-
- cd apptools-py2-${pkgver}
- sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
- $(find "${srcdir}" -name '*.py')
-}
-
build() {
- cd "$srcdir"/apptools-py2-$pkgver
-
- msg "Building Python2"
- python2 setup.py build
-
cd "$srcdir"/apptools-$pkgver
- msg "Building Python3"
python setup.py build
}
-package_python2-apptools() {
- depends=('python2-traits')
- optdepends=('python2-configobj: for apptools.preferences package'
- 'python2-traitsui: for user interface to apptools')
- cd "$srcdir"/apptools-py2-$pkgver
-
- python2 setup.py install --root="$pkgdir"/ --optimize=1
-
- install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python-apptools() {
- depends=('python-traits')
- optdepends=('python-configobj: for apptools.preferences package'
- 'python-traitsui: for user interface to apptools')
+package() {
cd "$srcdir"/apptools-$pkgver
python setup.py install --root="$pkgdir"/ --optimize=1
@@ -55,4 +27,3 @@
install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
More information about the arch-commits
mailing list