aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-logbook/APKBUILD
blob: d1ebb5cf3fab9e2fb3948f08242348cb558e83fa (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-logbook
pkgver=0.6.0
pkgrel=0
pkgdesc="A logging replacement for Python"
url="https://pypi.python.org/pypi/Logbook"
arch="noarch"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev python py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/L/Logbook/Logbook-$pkgver.tar.gz"

_builddir="$srcdir"/Logbook-$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="2c77da3adeafd191bb8071cc5ad447bf  Logbook-0.6.0.tar.gz"
sha256sums="e6391281a8a4c34b0758e65d72f3d5d990e4cfdb326336fc0a526bcacb8f10d6  Logbook-0.6.0.tar.gz"
sha512sums="41a939558976f51f1e82d2f1cf09a053eebd32ed45d76eb198d465bffe26011101e9a183dac03df34493e3ac81cd1218f8bb623dc97dd54e3c0cfc5d91fffdaa  Logbook-0.6.0.tar.gz"