[arch-commits] Commit in python-swagger-ui-bundle/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Fri Apr 10 16:01:35 UTC 2020


    Date: Friday, April 10, 2020 @ 16:01:34
  Author: ffy00
Revision: 613130

upgpkg: python-swagger-ui-bundle 0.0.6-1

Added:
  python-swagger-ui-bundle/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-10 16:01:34 UTC (rev 613130)
@@ -0,0 +1,34 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=swagger_ui_bundle
+pkgname=python-${_pkgname//_/-}
+pkgver=0.0.6
+pkgrel=1
+pkgdesc='Bundled swagger-ui'
+arch=('any')
+url='https://github.com/dtkav/swagger_ui_bundle'
+license=('Apache')
+depends=('python-jinja')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('2172bc039d1b4ad603412b1298211d738384d94df47612fb384da10fb69bf71f6b37c5afdcbe94dbe7b5c4df1495d43801cc11b2d4bebc8783f4d3442676f62f')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python setup.py test
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+



More information about the arch-commits mailing list