aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-giturlparse/APKBUILD
blob: e9b8b1f090efcb98bd1e292ce32de62cb7ae7480 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-giturlparse
pkgver=0.9.2
pkgrel=0
pkgdesc="Parse and Rewrite git URLs"
url="https://github.com/nephila/giturlparse"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/nephila/giturlparse/archive/0.9.2.tar.gz"
builddir="$srcdir/giturlparse-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}

sha512sums="b82bb96f4b0a242364a0173b15fefc507dec85c176aa0fc679c4554f71ec6a11b18b8886e34b5ce080759d56070a9126f54167dda89be592db0f6df4728bfd4c  py3-giturlparse-0.9.2.tar.gz"