aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-bottle-redis/APKBUILD
blob: ceb3845d9195d243156c6ead6a0d4a5cd2c7581c (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-redis
_pkgname=bottle-redis
pkgver=0.2.1
pkgrel=0
pkgdesc="Bottle redis plugin"
url="https://github.com/bottlepy/bottle-redis"
arch="noarch"
license="MIT"
depends="python py-bottle py-redis"
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="884fadac271f10fba90c2886e4682f4b  bottle-redis-0.2.1.tar.gz"
sha256sums="656fc3d42cec1e935d7aa40b314e714b9bfec1fa9044b0f1731bc8fcb6bb16f9  bottle-redis-0.2.1.tar.gz"
sha512sums="2db020bb786113e32d7f9dcf6fceb80426f7bd154eb3e5403372c7ebb82c55a8df0aad7a5fca6e47b1329eee1c14d1bfb833734951597083717da742a6461b91  bottle-redis-0.2.1.tar.gz"