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

Antonio Rojas arojas at archlinux.org
Sat Nov 9 10:46:19 UTC 2019


    Date: Saturday, November 9, 2019 @ 10:46:18
  Author: arojas
Revision: 524803

Drop python2

Modified:
  python-update-checker/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++------------------------------
 1 file changed, 7 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-09 10:44:01 UTC (rev 524802)
+++ PKGBUILD	2019-11-09 10:46:18 UTC (rev 524803)
@@ -1,7 +1,6 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-update-checker
-pkgname=('python-update-checker' 'python2-update-checker')
+pkgname=python-update-checker
 pkgver=0.16
 pkgrel=3
 pkgdesc="A python module that will check for package updates"
@@ -8,48 +7,26 @@
 arch=('any')
 license=('BSD')
 url='https://github.com/bboe/update_checker'
-makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests')
+depends=('python-requests')
+provides=('python-update_checker')
+conflicts=('python-update_checker')
+replaces=('python-update_checker')
+makedepends=('python-setuptools' 'python-requests')
 source=("https://pypi.io/packages/source/u/update_checker/update_checker-$pkgver.tar.gz")
 md5sums=('dcd73326d7e4db4226575cca03d24e42')
 
-prepare() {
-  cp -a update_checker-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/update_checker-$pkgver
   python setup.py build
-
-  cd "$srcdir"/update_checker-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/update_checker-$pkgver
   python setup.py test
-
-  cd "$srcdir"/update_checker-$pkgver-py2
-  python2 setup.py test
 }
 
-package_python-update-checker() {
-  depends=('python-requests')
-  provides=('python-update_checker')
-  conflicts=('python-update_checker')
-  replaces=('python-update_checker')
-
+package() {
   cd update_checker-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 }
-
-package_python2-update-checker() {
-  depends=('python2-requests')
-  provides=('python2-update_checker')
-  conflicts=('python2-update_checker')
-  replaces=('python2-update_checker')
-
-  cd update_checker-$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