[arch-commits] Commit in python-swagger-ui-bundle/repos (2 files)

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


    Date: Friday, April 10, 2020 @ 16:01:43
  Author: ffy00
Revision: 613131

archrelease: copy trunk to community-any

Added:
  python-swagger-ui-bundle/repos/community-any/
  python-swagger-ui-bundle/repos/community-any/PKGBUILD
    (from rev 613130, python-swagger-ui-bundle/trunk/PKGBUILD)

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

Copied: python-swagger-ui-bundle/repos/community-any/PKGBUILD (from rev 613130, python-swagger-ui-bundle/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-04-10 16:01:43 UTC (rev 613131)
@@ -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