summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGaël Donval2016-09-03 18:12:19 +0200
committerGaël Donval2016-09-03 18:12:19 +0200
commit88c5c3752e7539306e1aa4061318bce2d2747716 (patch)
tree6346a69022467cbaddf5a89fc8dcd29510421e1c /PKGBUILD
downloadaur-88c5c3752e7539306e1aa4061318bce2d2747716.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0855c5c470e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Gaël Donval <gdonval+aur at google mail>
+# Contributor: Gaël Donval <gdonval+aur at google mail>
+
+pkgbase='python-flask-cors'
+pkgname=('python-flask-cors')
+pkgver=3.0.0
+pkgrel=1
+pkgdesc='cross origin resource sharing (CORS) support for Flask'
+arch=('any')
+url='https://github.com/corydolphin/flask-cors'
+license=('BSD')
+makedepends=('python-setuptools')
+depends=('python-flask>=0.9'
+ 'python-six'
+ 'python>=3.4')
+source=("https://github.com/corydolphin/flask-cors/archive/${pkgver}.tar.gz")
+sha1sums=('1ec308411b73d0d7af2503a862982e740b0d4aa4')
+md5sums=('2494a101dac16a43ad4bc36368f0ecdf')
+
+build() {
+ cd "${srcdir}"/flask-cors-$pkgver
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}"/flask-cors-$pkgver
+ python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}