[arch-commits] Commit in autopep8/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Mar 30 13:59:40 UTC 2021
Date: Tuesday, March 30, 2021 @ 13:59:39
Author: felixonmars
Revision: 910470
upgpkg: autopep8 1:1.5.6-2: remove python2 package
Modified:
autopep8/trunk/PKGBUILD
----------+
PKGBUILD | 42 ++++++++----------------------------------
1 file changed, 8 insertions(+), 34 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-03-30 13:50:23 UTC (rev 910469)
+++ PKGBUILD 2021-03-30 13:59:39 UTC (rev 910470)
@@ -2,58 +2,32 @@
# Contributor: Ismael Carnales <icarnales at gmail dot com>
# Contributor: Sergey Mastykov <smastykov[at]gmail[dot]com>
-pkgbase=autopep8
-pkgname=(autopep8 python2-autopep8)
+pkgname=autopep8
pkgver=1.5.6
-pkgrel=1
+pkgrel=2
epoch=1
pkgdesc="A tool that automatically formats Python code to conform to the PEP 8 style guide"
arch=('any')
url="https://github.com/hhatto/autopep8"
license=('MIT')
-makedepends=('python-pycodestyle' 'python2-pycodestyle' 'python-toml' 'python2-toml')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/hhatto/autopep8/archive/v$pkgver.tar.gz")
+depends=('python-pycodestyle' 'python-toml')
+source=("https://github.com/hhatto/autopep8/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('ffd560bdd97bd228e2833727f8e1ca5f2e618726d8a0f90324c5235ae91af8c868e3d183fe25c9f8fde7c1104823e7bc7e1e913201aa992bd15f307d9f5a71f0')
-prepare() {
- cp -a autopep8-$pkgver{,-py2}
-}
-
build() {
- cd "$srcdir"/autopep8-$pkgver
+ cd autopep8-$pkgver
python setup.py build
-
- cd "$srcdir"/autopep8-$pkgver-py2
- python2 setup.py build
}
check() {
- export LC_CTYPE=en_US.UTF-8
-
- cd "$srcdir"/autopep8-$pkgver
+ cd autopep8-$pkgver
python setup.py test
-
- cd "$srcdir"/autopep8-$pkgver-py2
- python2 setup.py test
}
-package_autopep8() {
- depends=('python-pycodestyle' 'python-toml')
-
+package() {
cd autopep8-$pkgver
python3 setup.py install -O1 --prefix=/usr --root="$pkgdir"
-
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
-package_python2-autopep8() {
- depends=('python2-pycodestyle' 'python2-toml')
-
- cd autopep8-$pkgver-py2
- python2 setup.py install -O1 --prefix=/usr --root="$pkgdir"
- mv "$pkgdir"/usr/bin/autopep8{,-python2}
-
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list