[arch-commits] Commit in python-venusian/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Apr 2 13:32:56 UTC 2019


    Date: Tuesday, April 2, 2019 @ 13:32:56
  Author: felixonmars
Revision: 447742

upgpkg: python-venusian 1.2.0-2

remove python2 sibling

Modified:
  python-venusian/trunk/PKGBUILD

----------+
 PKGBUILD |   38 +++++++++-----------------------------
 1 file changed, 9 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-02 13:32:48 UTC (rev 447741)
+++ PKGBUILD	2019-04-02 13:32:56 UTC (rev 447742)
@@ -1,51 +1,31 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Sergey Mastykov <smastykov[at]gmail[dot]com>
 
-pkgbase=python-venusian
-pkgname=('python-venusian' 'python2-venusian')
+pkgname=python-venusian
 pkgver=1.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A library for deferring decorator actions"
 arch=('any')
 license=('custom:BSD')
 url="http://pylonsproject.org"
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/Pylons/venusian/archive/$pkgver.tar.gz")
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Pylons/venusian/archive/$pkgver.tar.gz")
 sha512sums=('8ae485677f28584701d0cb3997aab4c1ecfaa78580a3da951ae63a7c6cc266beee1f5064e0a2653c2e1210a4138aa123c1309be5e5f858ec13ff72ec19429e13')
 
-prepare() {
-  cp -a venusian-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/venusian-$pkgver
+  cd venusian-$pkgver
   python setup.py build
-
-  cd "$srcdir"/venusian-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/venusian-$pkgver
+  cd venusian-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/venusian-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-venusian() {
-  depends=('python')
-
+package() {
   cd venusian-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 }
-
-package_python2-venusian() {
-  depends=('python2')
-
-  cd venusian-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}



More information about the arch-commits mailing list