aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-bottle-sqlite/APKBUILD
blob: 57a9120976c3c5b6be27a762443e97029624a2bd (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-sqlite
_pkgname=bottle-sqlite
pkgver=0.1.2
pkgrel=0
pkgdesc="Bottle sqlite plugin"
url="https://pypi.python.org/pypi/bottle-sqlite"
arch="noarch"
license="MIT"
depends="python2 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"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="802f6b9ea861e53e26e0bfa256925d45  bottle-sqlite-0.1.2.tar.gz"
sha256sums="3106d332270022dcec66102082906da47bcc62acd43a44c3deea9b398ef3eeab  bottle-sqlite-0.1.2.tar.gz"
sha512sums="6314f80e76cfe6f592f244708501d6e922b2cf4c50ea04d21eccbad7fc903c0ae607e3f2b446fd3f1066eebc043be24c81ef9724008b10a513fde06f2864a3f0  bottle-sqlite-0.1.2.tar.gz"