summaryrefslogtreecommitdiffstats
path: root/testing/py-exconsole/APKBUILD
blob: c1de9a44261bda44802cf9145762271bbf13af02 (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-exconsole
_pkgname=python-exconsole
pkgver=0.1.4
pkgrel=0
pkgdesc="Emergency/postmortem Python console"
url="https://github.com/Eugeny/exconsole"
arch="noarch"
license="LGPL3+"
depends="python"
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="b1d54a66d0f816ab4e87204d839e6b9e  python-exconsole-0.1.4.tar.gz"
sha256sums="9b4bd4f2ecab33bf6729151bee1ce474588f0afeacc0ab36f236922249da765b  python-exconsole-0.1.4.tar.gz"
sha512sums="6f79a55044212982a9cb5eb8692e68c9730c71f6978a30a636f3793ee86bf787fa385a1c8668ed55ce81af5d14ea30450eea7971c32cb8cccac93226afbb84ae  python-exconsole-0.1.4.tar.gz"