Date: Friday, October 25, 2019 @ 20:15:58 Author: felixonmars Revision: 519824
archrelease: copy trunk to community-staging-any Added: python-click-plugins/repos/community-staging-any/ python-click-plugins/repos/community-staging-any/PKGBUILD (from rev 519821, python-click-plugins/trunk/PKGBUILD) ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Copied: python-click-plugins/repos/community-staging-any/PKGBUILD (from rev 519821, python-click-plugins/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2019-10-25 20:15:58 UTC (rev 519824) @@ -0,0 +1,50 @@ +# Maintainer: Kyle Keen <keen...@gmail.com> +# Contributor: Matthew McGinn <mam...@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=3 +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" +}