Date: Friday, October 25, 2019 @ 19:59:57
  Author: felixonmars
Revision: 519676

archrelease: copy trunk to community-staging-any

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

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

Copied: python-yarg/repos/community-staging-any/PKGBUILD (from rev 519675, 
python-yarg/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2019-10-25 19:59:57 UTC (rev 519676)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-yarg
+pkgver=0.1.9
+pkgrel=3
+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.8/site-packages/{,yarg/}tests
+}

Reply via email to