[arch-commits] Commit in python-click-plugins/repos (2 files)

Kyle Keen kkeen at archlinux.org
Fri Aug 16 15:43:24 UTC 2019


    Date: Friday, August 16, 2019 @ 15:43:24
  Author: kkeen
Revision: 499886

archrelease: copy trunk to community-any

Added:
  python-click-plugins/repos/community-any/
  python-click-plugins/repos/community-any/PKGBUILD
    (from rev 499885, python-click-plugins/trunk/PKGBUILD)

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

Copied: python-click-plugins/repos/community-any/PKGBUILD (from rev 499885, python-click-plugins/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-08-16 15:43:24 UTC (rev 499886)
@@ -0,0 +1,50 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Matthew McGinn <mamcgi at gmail.com>
+# Contributor: Carl George < arch at cgtx dot us >
+
+_name="click-plugins"
+pkgname=("python-click-plugins" "python2-click-plugins")
+pkgver=1.1.1
+pkgrel=2
+pkgdesc="An extension module for click to enable registering CLI commands via setuptools entry-points."
+arch=("any")
+url="https://github.com/click-contrib/click-plugins"
+license=("BSD")
+depends=("python-click")
+makedepends=("python-setuptools" "python2-setuptools")
+checkdepends=("python-pytest" "python2-pytest" "python-click" "python2-click")
+source=("https://pypi.python.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('46ab999744a9d831159c3411bb0c79346d94a444df9a3a3742e9ed63645f264b')
+
+prepare() {
+    cp -a "$srcdir/$_name-$pkgver" "$srcdir/$_name-$pkgver-python2"
+}
+
+build() {
+    cd "$srcdir/$_name-$pkgver"
+    python setup.py build
+    cd "$srcdir/$_name-$pkgver-python2"
+    python2 setup.py build
+}
+
+check() {
+    export LC_ALL="en_US.UTF-8"
+    cd "$srcdir/$_name-$pkgver"
+    py.test tests
+    cd "$srcdir/$_name-$pkgver-python2"
+    py.test2 tests
+}
+
+package_python-click-plugins() {
+    depends=("python-click")
+    cd "$srcdir/$_name-$pkgver"
+    python setup.py install --skip-build --root="$pkgdir" --optimize=1
+    install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-click-plugins() {
+    depends=("python2-click")
+    cd "$srcdir/$_name-$pkgver-python2"
+    python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+    install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list