Date: Sunday, June 2, 2019 @ 12:24:18
  Author: yan12125
Revision: 476586

python-scramp: new package

Added as a dependency for the next release of pg8000

Ref: 
https://github.com/tlocke/pg8000/commit/d14f8bddca7d7be587d685301f44ebb0e70c6b15

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

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

Added: python-scramp/trunk/PKGBUILD
===================================================================
--- python-scramp/trunk/PKGBUILD                                (rev 0)
+++ python-scramp/trunk/PKGBUILD        2019-06-02 12:24:18 UTC (rev 476586)
@@ -0,0 +1,30 @@
+# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org>
+
+pkgname=python-scramp
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Python implementation of the SCRAM protocol"
+arch=(any)
+url='https://github.com/tlocke/scramp'
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest)
+source=(https://github.com/tlocke/scramp/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('ca426e7fd186531a933207db3e973e1cf3a8b425c2f14875e061a80ebf62660e')
+
+build() {
+  cd scramp-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd scramp-$pkgver
+  PYTHONPATH=. pytest -v -x tests
+}
+
+package() {
+  cd scramp-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}

Reply via email to