aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-vcversioner/APKBUILD
blob: 3f464e84579b2ffc037d8ef400e78e70c0fe5ab4 (plain) (blame)
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: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-vcversioner
_pkgname=vcversioner
pkgver=2.14.0.0
pkgrel=0
pkgdesc="Use version control tags to discover version numbers"
url="https://pypi.python.org/pypi/vcversioner"
arch="noarch"
license="ISC"
depends=""
depends_dev=""
makedepends="$depends_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="7848a365ced9941053bc25d9a9f8f4b4  vcversioner-2.14.0.0.tar.gz"
sha256sums="acd43686e92e6c8bbeb4f2eef54408567a7adea9692fa72d591eec5357c03b86  vcversioner-2.14.0.0.tar.gz"
sha512sums="0d474910f9d0f0dd0c0d0b824bcdf5da7bbb5d2b55691f18107bb0b8a237213a83d8f51f719d4761e1dae9db70e84ef8c264c388ec1995ed0a55a838575e377e  vcversioner-2.14.0.0.tar.gz"