aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-bottle-servefiles/APKBUILD
blob: bd9b177338f61812bfabc60bba125a15233bdb31 (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-bottle-servefiles
_pkgname=bottle-servefiles
pkgver=0.1.2
pkgrel=0.dev
pkgdesc="Bottle plugin for serving files"
url="https://bitbucket.org/rudylattae/bottle-servefiles"
arch="noarch"
license="BSD"
depends="python py-bottle"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-${pkgver}dev.zip"

_builddir="$srcdir"/$_pkgname-${pkgver}dev
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="7f0f2e2df7cd99858d58abefb26eb6a3  bottle-servefiles-0.1.2dev.zip"
sha256sums="163f182a224c6b4bce47284948d8d7d747662d9da63becf76b4a543f824a2ca0  bottle-servefiles-0.1.2dev.zip"
sha512sums="9a5976abf3e562c8d77b0e4805ba62bbf9ae0796c2af661b1715415fca4a5680beb8bdea80a8600bba0aa891f0a2a94b8e72b5358a91ca58a53399525de25477  bottle-servefiles-0.1.2dev.zip"