aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flask-menubuilder/APKBUILD
blob: c9535e1008733c36ac4391d950ab45a588d5279c (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-menubuilder
_pkgname=Flask-MenuBuilder
pkgver=0.9.2
pkgrel=0
pkgdesc="Flask MenuBuilder extension"
url="https://pypi.python.org/pypi/Flask-MenuBuilder"
arch="noarch"
license="BSD"
depends="python py-flask"
depends_dev=""
makedepends="python-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="b950f33b38d503379ae866647cd83aa9  Flask-MenuBuilder-0.9.2.tar.gz"
sha256sums="d64a54c26b005896f7bba155c2ae2f13a238b4369a4d724d962b9ccedfd279c5  Flask-MenuBuilder-0.9.2.tar.gz"
sha512sums="689f24aed3254be60a1e450d3815916a71fad87165c246484dffad6af2d45a4f479f9d85bc45861aaddd1c9b2fdebc4f83b2a3e8157dc69893cdfe507335ddb5  Flask-MenuBuilder-0.9.2.tar.gz"