aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-bottle-session/APKBUILD
blob: 2ab032358c9279e5f9d1c887e0eaf17480b2af31 (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-session
_pkgname=bottle-session
pkgver=0.4
pkgrel=0
pkgdesc="Bottle session plugin"
url="https://bitbucket.org/devries/bottle-session"
arch="noarch"
license="Artistic"
depends="python py-bottle py-redis"
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="21e876d4c0573f94cda51b68de512560  bottle-session-0.4.tar.gz"
sha256sums="c62fb9348e3cdc3251ece83a0373c159859d435032afa68aa39fefd8f7ba89e1  bottle-session-0.4.tar.gz"
sha512sums="1f052c1fbca1dc3ab0bb1352ef9c83a1cfcf4131d356543ce73226408335edc31780e4e486fdeb0bf1c0a2bf649efaa64267d42af0aa2ddb454ac2b01a48f53e  bottle-session-0.4.tar.gz"