Date: Sunday, April 9, 2023 @ 19:44:10
  Author: felixonmars
Revision: 1443482

archrelease: copy trunk to community-staging-any

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

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

Copied: python-basictracer/repos/community-staging-any/PKGBUILD (from rev 
1443481, python-basictracer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-09 19:44:10 UTC (rev 1443482)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-basictracer
+pkgver=3.2.0
+pkgrel=3
+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=('48923ca75b459401ab604174a62c611ea44c5904709260d0635dc0436f5c0d88b7564d2fcf68a3fd18f3825ba615347bed7e79a41f303745ca7de282bbd4c61c')
+
+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/
+}

Reply via email to