[arch-commits] Commit in python-mccabe/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 13:29:05 UTC 2015
Date: Saturday, September 19, 2015 @ 15:29:05
Author: fyan
Revision: 140823
archrelease: copy trunk to community-staging-any
Added:
python-mccabe/repos/community-staging-any/
python-mccabe/repos/community-staging-any/PKGBUILD
(from rev 140822, python-mccabe/trunk/PKGBUILD)
----------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
Copied: python-mccabe/repos/community-staging-any/PKGBUILD (from rev 140822, python-mccabe/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 13:29:05 UTC (rev 140823)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Karol "Kenji Takahashi" Woźniak <kenji.sx>
+
+pkgbase=python-mccabe
+pkgname=(python-mccabe python2-mccabe)
+_reponame=mccabe
+pkgver=0.3.1
+pkgrel=2
+pkgdesc="McCabe complexity checker for Python"
+arch=('any')
+url="https://github.com/flintwork/mccabe"
+license=('custom:Expat')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/flintwork/${_reponame}/archive/${pkgver}.tar.gz")
+md5sums=('45c48c0978e6fc1f31fedcb918178abb')
+
+prepare() {
+ cp -a ${_reponame}-${pkgver}{,-py2}
+}
+
+build() {
+ cd ${_reponame}-${pkgver}
+ python setup.py build
+
+ cd ../${_reponame}-${pkgver}-py2
+ python2 setup.py build
+}
+
+check() {
+ cd ${_reponame}-${pkgver}
+ python setup.py test
+
+ cd ../${_reponame}-${pkgver}-py2
+ python2 setup.py test
+}
+
+package_python-mccabe() {
+ depends=('python')
+
+ cd ${_reponame}-${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 ${_reponame}-${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