[arch-commits] Commit in python-mccabe/repos (testing-any testing-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Feb 8 07:25:28 UTC 2017
Date: Wednesday, February 8, 2017 @ 07:25:27
Author: felixonmars
Revision: 288227
archrelease: copy trunk to testing-any
Added:
python-mccabe/repos/testing-any/
python-mccabe/repos/testing-any/PKGBUILD
(from rev 288226, python-mccabe/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: python-mccabe/repos/testing-any/PKGBUILD (from rev 288226, python-mccabe/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2017-02-08 07:25:27 UTC (rev 288227)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Karol "Kenji Takahashi" Woźniak <kenji.sx>
+
+pkgbase=python-mccabe
+pkgname=(python-mccabe python2-mccabe)
+pkgver=0.6.1
+pkgrel=1
+pkgdesc="McCabe complexity checker for Python"
+arch=('any')
+url="https://github.com/flintwork/mccabe"
+license=('custom:Expat')
+makedepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/flintwork/mccabe/archive/$pkgver.tar.gz")
+md5sums=('0360af86f0bce7a839bd3cba517edf9c')
+
+prepare() {
+ cp -a mccabe-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/mccabe-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/mccabe-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/mccabe-$pkgver
+ python setup.py test
+
+ cd "$srcdir"/mccabe-$pkgver-py2
+ python2 setup.py test
+}
+
+package_python-mccabe() {
+ depends=('python')
+
+ cd mccabe-$pkgver
+ python setup.py install --root="$pkgdir" --prefix=/usr --skip-build --optimize=1
+
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-mccabe() {
+ depends=('python2')
+
+ cd mccabe-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --prefix=/usr --skip-build --optimize=1
+
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list