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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:42:37 UTC 2020


    Date: Monday, November 9, 2020 @ 15:42:36
  Author: felixonmars
Revision: 747104

archrelease: copy trunk to community-staging-any

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

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

Copied: python-visitor/repos/community-staging-any/PKGBUILD (from rev 747102, python-visitor/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:42:36 UTC (rev 747104)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-visitor
+pkgver=0.1.3
+pkgrel=4
+pkgdesc="A tiny pythonic visitor implementation"
+url="https://github.com/mbr/visitor"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mbr/visitor/archive/$pkgver.tar.gz")
+sha512sums=('414c77df8efcc22df5ee8073e02b8c5c28563954ef9b9a869c4ea3f7f1268a97929c1fe29142ba41e3a5acafea52599f6bf073aacd654643d7d8380cd4f41fbc')
+
+build() {
+  cd visitor-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd visitor-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd visitor-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


More information about the arch-commits mailing list