aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-logbook/APKBUILD
blob: f67ad3dda970b44588a681d92fae5cc6f2826067 (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.7.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="7916cd0934403f989fbb45bfa0e1ac6b  Logbook-0.7.0.tar.gz"
sha256sums="597066a4e3c93113bfa9ddab0f4ffd95bd1e11b9f25e6bd9f7e83275e9401bf0  Logbook-0.7.0.tar.gz"
sha512sums="b6ef8b509ce0c06fab4ba888779def4310b64b99ff0282609230f16121f6bcae8eb7424229feca1951c7019a4401727c1d1fc8cffc05b0f802294b89798913f6  Logbook-0.7.0.tar.gz"