summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Giovannetti <dev@dariogiovannetti.net>2019-02-10 00:30:55 +0800
committerDario Giovannetti <dev@dariogiovannetti.net>2019-02-10 00:30:55 +0800
commit10c9dd821ca9246ff405a6db97682a685368b988 (patch)
tree9bb80c3f56e9d42a7ae70d5b99da2481c2575afb
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD41
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..ab469c5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-apispec-webframeworks
+ pkgdesc = Web framework plugins for apispec (formally in apispec.ext).
+ pkgver = 0.3.0
+ pkgrel = 1
+ url = https://github.com/marshmallow-code/apispec-webframeworks
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = python-apispec-webframeworks-0.3.0.tar.gz::https://github.com/marshmallow-code/apispec-webframeworks/archive/0.3.0.tar.gz
+ sha512sums = e301e7f84522c695044ba0621a78116986e7cedd1299bd8d13410a84ac546bf13c9d798ec53272a70f4c8fa3975a5ba55f59b7ab1a1b1df0a41d8564588068a6
+
+pkgname = python-apispec-webframeworks
+ depends = python
+
+pkgname = python2-apispec-webframeworks
+ depends = python2
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e9648f0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+pkg/
+src/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..3b02947
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Dario Giovannetti <dev@dariogiovannetti.net>
+
+pkgbase=python-apispec-webframeworks
+pkgname=(python-apispec-webframeworks python2-apispec-webframeworks)
+pkgver=0.3.0
+pkgrel=1
+pkgdesc="Web framework plugins for apispec (formally in apispec.ext)."
+url="https://github.com/marshmallow-code/apispec-webframeworks"
+license=('MIT')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/marshmallow-code/apispec-webframeworks/archive/$pkgver.tar.gz")
+sha512sums=('e301e7f84522c695044ba0621a78116986e7cedd1299bd8d13410a84ac546bf13c9d798ec53272a70f4c8fa3975a5ba55f59b7ab1a1b1df0a41d8564588068a6')
+
+prepare() {
+ cp -a apispec-webframeworks-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/apispec-webframeworks-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/apispec-webframeworks-$pkgver-py2
+ python2 setup.py build
+}
+
+package_python-apispec-webframeworks() {
+ depends=('python')
+
+ cd apispec-webframeworks-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-apispec-webframeworks() {
+ depends=('python2')
+
+ cd apispec-webframeworks-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}