aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-bottle-rest/APKBUILD
blob: 47c0fa62da83b31716cabf7169f9040d22a35845 (plain) (blame)
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-rest
_pkgname=bottle-rest
pkgver=0.4.0
pkgrel=0
pkgdesc="A decorator for REST in Bottle"
url="https://pypi.python.org/pypi/bottle-rest/"
arch="noarch"
license="MIT"
depends="python py-bottle"
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="c69d0a1e21919718d6bce371311cb36a  bottle-rest-0.4.0.tar.gz"
sha256sums="ec50a134efc64b1ae330a6f024633756f2f866cbc265152d645104897060d423  bottle-rest-0.4.0.tar.gz"
sha512sums="3a11d84ea3426ed3aff3036bef00b0277c90495659f8faba7fd2b08e853d2557f6726325df565d3181a8fb27314ccaf52336a540f860435f0acbd513727902b2  bottle-rest-0.4.0.tar.gz"