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

Jelle van der Waa jelle at archlinux.org
Tue Dec 17 14:07:59 UTC 2019


    Date: Tuesday, December 17, 2019 @ 14:07:59
  Author: jelle
Revision: 537926

upgpkg: python-editorconfig 0.12.2-5

Remove python2

Modified:
  python-editorconfig/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++-----------------------
 1 file changed, 5 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-17 14:04:10 UTC (rev 537925)
+++ PKGBUILD	2019-12-17 14:07:59 UTC (rev 537926)
@@ -1,32 +1,23 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-editorconfig
-pkgname=('python-editorconfig' 'python2-editorconfig')
+pkgname=python-editorconfig
 pkgver=0.12.2
-pkgrel=4
+pkgrel=5
 pkgdesc='EditorConfig File Locator and Interpreter for Python'
 arch=('any')
 license=('PSF')
 url='https://github.com/editorconfig/editorconfig-core-py'
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 source=("https://pypi.io/packages/source/E/EditorConfig/EditorConfig-$pkgver.tar.gz")
 sha512sums=('15648904683e04b68966651ebf2046b60473a47a408dff257d64d06b6c0cc6765882ebf5ec0e0ccaf5dc7e78e93b5f9bdf129ae0e2a23f7f489cb50c9ae3ff16')
 
-prepare() {
-  cp -a EditorConfig-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/EditorConfig-$pkgver
   python setup.py build
-
-  cd "$srcdir"/EditorConfig-$pkgver-py2
-  python2 setup.py build
 }
 
-package_python-editorconfig() {
-  depends=('python')
-
+package() {
   cd EditorConfig-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 
@@ -34,13 +25,4 @@
   mv "$pkgdir"/usr/bin/editorconfig{,3}
 }
 
-package_python2-editorconfig() {
-  depends=('python2')
-
-  cd EditorConfig-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  mv "$pkgdir"/usr/bin/editorconfig{,2}
-}
-
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list