aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flask-autoindex/APKBUILD
blob: 4f999dd0922cdec6e434710e9c82c0013e3b85df (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-autoindex
_pkgname=Flask-AutoIndex
pkgver=0.5
pkgrel=0
pkgdesc="Flask autoindex"
url="https://pypi.python.org/pypi/Flask-AutoIndex"
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="24984602365704737468bb4d2586a739  Flask-AutoIndex-0.5.tar.gz"
sha256sums="12904135a3092dfdbfc3eec0f573ec0cf483e46252e7e12fedff89407a9f2c75  Flask-AutoIndex-0.5.tar.gz"
sha512sums="715c27976f065aeee995adcbc6405a7eab2f197c69712181774e7474f04c3419358beb90663f7ec043cf3862d23daca7aa2add29f1708b26b21118444fe3caeb  Flask-AutoIndex-0.5.tar.gz"