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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 16:52:39 UTC 2020


    Date: Monday, November 9, 2020 @ 16:52:39
  Author: foutrelis
Revision: 747642

archrelease: copy trunk to community-staging-any

Added:
  python-yarg/repos/community-staging-any/
  python-yarg/repos/community-staging-any/PKGBUILD
    (from rev 747641, python-yarg/trunk/PKGBUILD)

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

Copied: python-yarg/repos/community-staging-any/PKGBUILD (from rev 747641, python-yarg/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:52:39 UTC (rev 747642)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-yarg
+pkgver=0.1.9
+pkgrel=5
+pkgdesc="A semi hard Cornish cheese, also queries PyPI (PyPI client)"
+url="https://github.com/kura/yarg"
+license=('MIT')
+arch=('any')
+depends=('python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/kura/yarg/archive/$pkgver.tar.gz")
+sha512sums=('1083608b0c2f84d15c27af9c9fbaf802e9f770518fc2c46bd6ba07d2123d4ad0a9ac7673a14714e579664ffef44667a21d1bec6417d9075c315749175bcd8fd9')
+
+build() {
+  cd yarg-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd yarg-$pkgver
+  python runtests.py
+}
+
+package() {
+  cd yarg-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+
+  mv "$pkgdir"/usr/lib/python3.9/site-packages/{,yarg/}tests
+}



More information about the arch-commits mailing list