Date: Thursday, April 6, 2023 @ 17:16:44
  Author: felixonmars
Revision: 1439964

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pastedeploy/repos/community-staging-any/PKGBUILD (from rev 
1439960, python-pastedeploy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 17:16:44 UTC (rev 1439964)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pastedeploy
+pkgver=3.0.1
+pkgrel=2
+pkgdesc="Load, configure, and compose WSGI applications and servers"
+arch=('any')
+license=('MIT')
+url="http://pythonpaste.org/deploy/";
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Pylons/pastedeploy/archive/$pkgver.tar.gz";)
+sha512sums=('2b06351b9104da1e0d30c90492ee31113aacf5cde7a66a34482c4625af902b855eab2af80073db4eb18805a192f858dac360062dadf58a161cc3cfabf5b67a1a')
+
+prepare() {
+  cd pastedeploy-$pkgver
+  sed -i 's/--cov//' pytest.ini
+}
+
+build() {
+  cd pastedeploy-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pastedeploy-$pkgver
+  PYTHONPATH="$PWD/src" pytest
+}
+
+package() {
+  cd pastedeploy-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 license.txt 
"$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}

Reply via email to