aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-semantic-version/APKBUILD
blob: a8324b75e5e05d639c21d18bbd6bd69f2077f3e1 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=py3-semantic-version
pkgver=2.6.0
pkgrel=1
pkgdesc="A library implementing the 'SemVer' scheme."
url="https://github.com/rbarrois/python-semanticversion"
arch="noarch"
license="BSD"
depends="python3"
makedepends="py3-setuptools"
install=""
source="$pkgname-$pkgver.tar.gz::https://github.com/rbarrois/python-semanticversion/archive/v$pkgver.tar.gz"
builddir="$srcdir/python-semanticversion-$pkgver"

replaces=py-semanticversion # Backwards compatibility
provides=py-semanticversion=$pkgver-r$pkgrel # Backwards compatibility

build() {
	cd "$builddir"
	python3 setup.py build || return 1
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr \
		--root="$pkgdir" --optimize=1 || return 1
}

sha512sums="18db9279c2728565b13362c54bedbf569f0878cbe6bb58e631d87ffe7cff7d9131a30a2592cbf511091c03e854851159bbb298fe7469f53e8a2d92cf26ab4d0b  py3-semantic-version-2.6.0.tar.gz"