[arch-commits] Commit in autopep8/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 20:28:02 UTC 2019
Date: Saturday, October 26, 2019 @ 20:28:01
Author: felixonmars
Revision: 520544
archrelease: copy trunk to community-staging-any
Added:
autopep8/repos/community-staging-any/
autopep8/repos/community-staging-any/PKGBUILD
(from rev 520543, autopep8/trunk/PKGBUILD)
----------+
PKGBUILD | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
Copied: autopep8/repos/community-staging-any/PKGBUILD (from rev 520543, autopep8/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 20:28:01 UTC (rev 520544)
@@ -0,0 +1,59 @@
+# 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.4.4
+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')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/hhatto/autopep8/archive/v$pkgver.tar.gz")
+sha512sums=('ad47b1f3b2aabb4383ef12fb774dcb8d967e489e1a24391b62e7253036b91b45948a9d18e6db91cff844b050f75d31fd266767022744fbdbe2e7ee7caef51abb')
+
+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')
+
+ 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')
+
+ 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