summaryrefslogtreecommitdiff
path: root/testing/wlc/APKBUILD
blob: c8582139bfa957373bbc2da0763fda68c28b9c87 (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: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=wlc
pkgver=1.13
pkgrel=1
pkgdesc="Weblate command line client"
url="https://weblate.org"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-argcomplete py3-dateutil py3-requests py3-xdg"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-responses"
source="https://github.com/WeblateOrg/wlc/archive/refs/tags/$pkgver/wlc-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	pytest wlc
}

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

sha512sums="
a6de0a1f6e6298d980341bf9e3801a9ba310efe0c70105a8cc561552f778f2c4a8bd5d6c77c8d7588e709dc28129ee258f977785fe0eff916616c682f3d6cb32  wlc-1.13.tar.gz
"