[arch-commits] Commit in python-mccabe/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Thu Aug 19 12:33:43 UTC 2021


    Date: Thursday, August 19, 2021 @ 12:33:43
  Author: felixonmars
Revision: 1003813

archrelease: copy trunk to community-any

Added:
  python-mccabe/repos/community-any/
  python-mccabe/repos/community-any/PKGBUILD
    (from rev 1003812, python-mccabe/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: python-mccabe/repos/community-any/PKGBUILD (from rev 1003812, python-mccabe/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-08-19 12:33:43 UTC (rev 1003813)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Karol "Kenji Takahashi" Woźniak <kenji.sx>
+
+pkgname=python-mccabe
+pkgver=0.6.1
+pkgrel=8
+pkgdesc="McCabe complexity checker for Python"
+arch=('any')
+url="https://github.com/flintwork/mccabe"
+license=('custom:Expat')
+depends=('python')
+makedepends=('python-setuptools' 'python-pytest-runner')
+source=("https://github.com/flintwork/mccabe/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('1da239933f36c8b7c0f9f026822d673d0b207ac49e45027d77500001327964dd66cc7074be22311927176fc313174f4eb7908d0fc45da9fc4623bf1e237293b0')
+
+build() {
+  cd mccabe-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd mccabe-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd mccabe-$pkgver
+  python setup.py install --root="$pkgdir" --prefix=/usr --skip-build --optimize=1
+
+  install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list