aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-setuptools-git/APKBUILD
blob: 7649cea17f41006b7e3b82bb128dd562734f6f30 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-setuptools-git
_pkgname=setuptools-git
pkgver=1.2
pkgrel=1
pkgdesc="Setuptools plugin for Git"
url="https://github.com/wichert/setuptools-git"
arch="noarch"
license="BSD"
depends="python2 git"
makedepends="python2-dev py-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	python2 setup.py build
}

check() {
	cd "$builddir"
	export EMAIL="Test User <user@example.com>"
	python2 setup.py test
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="c070911618b6b92c862fb0bd40f1daeaf79e2ba10389fa1e69e4c50cfdd39c8e57a612082cbc7d932f8cea12a769e13451e35e1c8fe34f170d4817fd0d44f156  setuptools-git-1.2.tar.gz"