[arch-commits] Commit in autopep8/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Mar 30 13:59:57 UTC 2021
Date: Tuesday, March 30, 2021 @ 13:59:56
Author: felixonmars
Revision: 910471
archrelease: copy trunk to community-any
Added:
autopep8/repos/community-any/PKGBUILD
(from rev 910470, autopep8/trunk/PKGBUILD)
Deleted:
autopep8/repos/community-any/PKGBUILD
----------+
PKGBUILD | 92 +++++++++++++++++++++----------------------------------------
1 file changed, 33 insertions(+), 59 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-03-30 13:59:39 UTC (rev 910470)
+++ PKGBUILD 2021-03-30 13:59:56 UTC (rev 910471)
@@ -1,59 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Ismael Carnales <icarnales at gmail dot com>
-# Contributor: Sergey Mastykov <smastykov[at]gmail[dot]com>
-
-pkgbase=autopep8
-pkgname=(autopep8 python2-autopep8)
-pkgver=1.5.6
-pkgrel=1
-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")
-sha512sums=('ffd560bdd97bd228e2833727f8e1ca5f2e618726d8a0f90324c5235ae91af8c868e3d183fe25c9f8fde7c1104823e7bc7e1e913201aa992bd15f307d9f5a71f0')
-
-prepare() {
- cp -a autopep8-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/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
- python setup.py test
-
- cd "$srcdir"/autopep8-$pkgver-py2
- python2 setup.py test
-}
-
-package_autopep8() {
- depends=('python-pycodestyle' 'python-toml')
-
- cd autopep8-$pkgver
- python3 setup.py install -O1 --prefix=/usr --root="$pkgdir"
-
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-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:
Copied: autopep8/repos/community-any/PKGBUILD (from rev 910470, autopep8/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-03-30 13:59:56 UTC (rev 910471)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ismael Carnales <icarnales at gmail dot com>
+# Contributor: Sergey Mastykov <smastykov[at]gmail[dot]com>
+
+pkgname=autopep8
+pkgver=1.5.6
+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')
+depends=('python-pycodestyle' 'python-toml')
+source=("https://github.com/hhatto/autopep8/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('ffd560bdd97bd228e2833727f8e1ca5f2e618726d8a0f90324c5235ae91af8c868e3d183fe25c9f8fde7c1104823e7bc7e1e913201aa992bd15f307d9f5a71f0')
+
+build() {
+ cd autopep8-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd autopep8-$pkgver
+ python setup.py test
+}
+
+package() {
+ cd autopep8-$pkgver
+ python3 setup.py install -O1 --prefix=/usr --root="$pkgdir"
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list