aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flask-restaction/APKBUILD
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2015-10-30 09:26:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-30 12:46:31 +0000
commitde79c0eb178f26320e11ed9126b8bab3a66a1144 (patch)
tree20f4daa3b6caf1cd6b9c2cb9386175872385f4ab /testing/py-flask-restaction/APKBUILD
parenta973ab3508b9afc08f3cebc90bca8566b8e2e843 (diff)
downloadaports-de79c0eb178f26320e11ed9126b8bab3a66a1144.tar.bz2
aports-de79c0eb178f26320e11ed9126b8bab3a66a1144.tar.xz
testing/py-flask-restaction: new aport
A powerful flask extension for create restful API https://github.com/guyskk/flask-restaction
Diffstat (limited to 'testing/py-flask-restaction/APKBUILD')
-rw-r--r--testing/py-flask-restaction/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-flask-restaction/APKBUILD b/testing/py-flask-restaction/APKBUILD
new file mode 100644
index 0000000000..7d3f5fa9d3
--- /dev/null
+++ b/testing/py-flask-restaction/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-flask-restaction
+_pkgname=flask-restaction
+pkgver=0.17.5
+pkgrel=0
+pkgdesc="Flask RESTful API extension"
+url="https://pypi.python.org/pypi/flask-restaction"
+arch="noarch"
+license="MIT"
+depends="python py-flask"
+depends_dev=""
+makedepends="python-dev py-setuptools"
+install=""
+subpackages=""
+source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+
+md5sums="ace12f8478504ae3cbb00986b039ae47 flask-restaction-0.17.5.zip"
+sha256sums="d5d8b9cf658db05dca112e7c2dc27408f3de4494e84a7778ea8e5f13286bdfbd flask-restaction-0.17.5.zip"
+sha512sums="09a5a8b40acd3c9aac257788c47b4512ebbe787f85411f913750c43f3a4b3c4988c8734319f876fe9c5de716fef1fed162ca3355c6f9ff9558549eba46fa4e80 flask-restaction-0.17.5.zip"