[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Sat Jun 27 16:29:14 UTC 2020


    Date: Saturday, June 27, 2020 @ 16:29:14
  Author: felixonmars
Revision: 654984

addpkg: python-basictracer 3.1.0-1

Added:
  python-basictracer/
  python-basictracer/repos/
  python-basictracer/trunk/
  python-basictracer/trunk/PKGBUILD

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

Added: python-basictracer/trunk/PKGBUILD
===================================================================
--- python-basictracer/trunk/PKGBUILD	                        (rev 0)
+++ python-basictracer/trunk/PKGBUILD	2020-06-27 16:29:14 UTC (rev 654984)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-basictracer
+pkgver=3.1.0
+pkgrel=1
+pkgdesc='The Python implementation of the "BasicTracer" reference implementation'
+url="https://github.com/opentracing/basictracer"
+license=('MIT')
+arch=('any')
+depends=('python-opentracing' 'python-protobuf' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-pytest')
+source=("https://github.com/opentracing/basictracer-python/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('c744e8a64b59e688c5048493aa8739da35d3c3580c65bb561d94c0ce0d27fb26d5e99b12d09a8f7d3ca63bc1a98ebcac6e1c6fec7c2361c0734311d623047157')
+
+build() {
+  cd basictracer-python-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd basictracer-python-$pkgver
+  pytest
+}
+
+package() {
+  cd basictracer-python-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list