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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 16:13:43 UTC 2021


    Date: Wednesday, December 1, 2021 @ 16:13:43
  Author: felixonmars
Revision: 1060603

archrelease: copy trunk to community-staging-any

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

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

Copied: python-stone/repos/community-staging-any/PKGBUILD (from rev 1060602, python-stone/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 16:13:43 UTC (rev 1060603)
@@ -0,0 +1,32 @@
+# Maintainer:
+
+pkgname=python-stone
+_name=${pkgname#python-}
+pkgver=3.2.1
+pkgrel=2
+pkgdesc='The Official API Spec Language for Dropbox API V2'
+arch=(any)
+url='https://github.com/dropbox/stone'
+license=(MIT)
+depends=(python python-ply python-six)
+makedepends=(python-setuptools python-pytest-runner)
+checkdepends=(python-mock python-coverage)
+source=(https://github.com/dropbox/stone/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('05a6c9fec0b923a5e54814f31365499d6e7b726aaddfe5b8ee2d1a4b6cb06d3a')
+
+build() {
+  cd $_name-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_name-$pkgver
+  pytest
+}
+
+package() {
+  cd $_name-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}



More information about the arch-commits mailing list