aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-twiggy/APKBUILD
blob: 36a17ee695f8be1e2eacc3bc6c522706fcafffba (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-twiggy
_pkgname=Twiggy
pkgver=0.4.5
pkgrel=0
pkgdesc="A Pythonic logger"
url="http://twiggy.wearpants.org"
arch="noarch"
license="BSD"
depends="python"
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"
	python setup.py build || return 1
}

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

md5sums="b0dfbbb7f56342e448af4d22a47a339c  Twiggy-0.4.5.tar.gz"
sha256sums="4e8f1894e5aee522db6cb245ccbfde3c5d1aa08d31330c7e3af783b0e66eec23  Twiggy-0.4.5.tar.gz"
sha512sums="72855bc3a9b25ba95787558b29565b6cf131a5eed5238062ee885d35e0e27a89b802083304a320a6638a96e0c0932c2c43ed4dea31dbc92492037d9ec56f45fd  Twiggy-0.4.5.tar.gz"