aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-bottle-websocket/APKBUILD
blob: 5435edea7984a69e44949d6d847e6029b310e181 (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-websocket
_pkgname=bottle-websocket
pkgver=0.2.5
pkgrel=0
pkgdesc="Bottle websocket plugin"
url="https://pypi.python.org/pypi/bottle-websocket"
arch="noarch"
license="MIT"
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.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="2a13170819b4818b0ba306c95ea563ee  bottle-websocket-0.2.5.tar.gz"
sha256sums="9c83ce0a04309db3a90b64694e470946d9d39f3ae23927761a5ecbbd7e9d0b08  bottle-websocket-0.2.5.tar.gz"
sha512sums="3760cc2450678a1e0bfd5a7b9850a1699f931643db4ddaa30193c0e39245920da4cd5b56704c391953514bb9370759fc457dc75c73e9800742817b5feaf82af2  bottle-websocket-0.2.5.tar.gz"