mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-08 05:51:18 +02:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
# 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="python2"
|
|
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"
|
|
python2 setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
python2 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"
|