[arch-commits] Commit in pigar/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Jul 23 17:18:22 UTC 2018


    Date: Monday, July 23, 2018 @ 17:18:22
  Author: foutrelis
Revision: 363190

archrelease: copy trunk to community-staging-any

Added:
  pigar/repos/community-staging-any/
  pigar/repos/community-staging-any/PKGBUILD
    (from rev 363189, pigar/trunk/PKGBUILD)

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

Copied: pigar/repos/community-staging-any/PKGBUILD (from rev 363189, pigar/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-23 17:18:22 UTC (rev 363190)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=pigar
+pkgname=("pigar" "python2-pigar")
+pkgver=0.7.2
+pkgrel=2
+pkgdesc="A fantastic tool to generate requirements for your Python project, and more than that"
+arch=('any')
+url="https://github.com/Damnever/pigar"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-colorama' 'python2-colorama'
+             'python2-futures' 'python-gevent' 'python2-gevent')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/Damnever/pigar/archive/v$pkgver.tar.gz")
+sha512sums=('cf1d7035c2f2ed20eef43dc8870401dfdf984cab91c26420bdbf9259400268145db89dc791526b2953267dee57f3d589bc68fa5608a2a8951e6326b825cc4fd0')
+
+prepare() {
+  cp -a pigar-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/pigar-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/pigar-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/pigar-$pkgver
+  python -m unittest discover pigar/tests/ -t . -v
+
+  cd "$srcdir"/pigar-$pkgver-py2
+  python2 -m unittest discover pigar/tests/ -t . -v
+}
+
+package_pigar() {
+  depends=('python-setuptools' 'python-colorama' 'python-gevent')
+
+  cd pigar-$pkgver
+  python3 setup.py install -O1 --root="$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pigar() {
+  depends=('python2-setuptools' 'python2-colorama' 'python2-gevent' 'python2-futures')
+
+  cd pigar-$pkgver-py2
+  python2 setup.py install -O1 --root="$pkgdir"
+  mv "$pkgdir"/usr/bin/pigar{,2}
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list