summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b5316a34bc6fa4aac6a28186044a27757d7c8670 (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
# Maintainer: Václav Kubernát <sir.venceslas@gmail.com>

pkgname=shvcli-git
_gitname=shvcli
pkgver=r68.3a41dbe
pkgrel=2
pkgdesc='An easy-to-use CLI interface to access the SHV network'
url='https://gitlab.com/elektroline-predator/shvcli'
arch=('any')
license=('MIT')
depends=('pyshv' 'python-prompt_toolkit' 'python-pyxdg')
makedepends=('git' 'python-build' 'python-setuptools' 'python-installer' 'python-wheel')
conflicts=('shvcli' 'shvcli-git')
provides=('shvcli')
source=('git+https://gitlab.com/elektroline-predator/shvcli.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$_gitname"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/$_gitname"
	python -m build --wheel --no-isolation
}

package() {
	cd "$srcdir/$_gitname"
	python -m installer --destdir="$pkgdir" dist/*.whl
	install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgbase
}