summaryrefslogtreecommitdiff
path: root/testing/py-flask-cdn/APKBUILD
blob: 96b7a05be4f6816de82c0fc96678cae9d5dfd166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-flask-cdn
_pkgname=Flask-CDN
pkgver=1.5.0
pkgrel=0
pkgdesc="Flask CDN static files extension"
url="https://pypi.python.org/pypi/Flask-CDN"
arch="noarch"
license="MIT"
depends="python2 py-flask"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_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="fc7fe7ad131955d553f5aa19b4a469c4  Flask-CDN-1.5.0.tar.gz"
sha256sums="3957b5c939cabc0274f391450f01f3f08a40a6bb8aaa7f42cea0f176390f97fa  Flask-CDN-1.5.0.tar.gz"
sha512sums="d49aa02fdef2dea916817400a838a5d3e76d4635df30f9e194ceb68e902773668e96ff5a1f2594939e3d02d3b8eecf8f64fe7bbd16ee042ab0448a887b62509e  Flask-CDN-1.5.0.tar.gz"