aboutsummaryrefslogtreecommitdiffstats
path: root/testing/git2json/APKBUILD
blob: 5df8c739ac60efa55e698a7559109079815dff5f (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=git2json
pkgver=0.2.1
pkgrel=0
pkgdesc="Convert git logs to JSON for easier analysis"
url="https://github.com/tarmstrong/git2json"
arch="noarch"
license="BSD"
depends="python"
depends_dev=""
makedepends="python-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="644521a64a15c191c5b11c3c36f21429  git2json-0.2.1.tar.gz"
sha256sums="f3fa3d7813e536e38a9f130c06269149a100aee6ad20c28b320e0f1fb4be1115  git2json-0.2.1.tar.gz"
sha512sums="a6881cdf09210c6e3fa01a1496a286ff2f035aed2d9aa24598aaecd0cd6fa8d64ab36b4e477cc659f4c78d1536dcb62d39eb2f4519d430262dab48e2af9c387d  git2json-0.2.1.tar.gz"