aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flask-paginate/APKBUILD
blob: ce3a8b05aa7f3579e7fd6d4c8155dea86d34e880 (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-paginate
_pkgname=Flask-paginate
pkgver=0.4.5
pkgrel=0
pkgdesc="Simple paginate support for Flask"
url="https://pypi.python.org/pypi/Flask-paginate"
arch="noarch"
license="BSD"
depends="python py-flask"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/flask-paginate-$pkgver.zip"

_builddir="$srcdir"/flask-paginate-$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="bbc4945baa9b58606b7494ffc6ef49c7  flask-paginate-0.4.5.zip"
sha256sums="eb58636b98dc5349d4fe150614037a89bca46f24de924fe31a7ef70a7f25f368  flask-paginate-0.4.5.zip"
sha512sums="d928ade3cc91d9ea6518166aa726907610599d0c3c3b5f385609cea1a2e28f05d879fdfd1eb94c854a906e80e1e10bdc53479d3f97d73ff6f8964dfff104e437  flask-paginate-0.4.5.zip"