blob: 85357bb36995ecb1461178251c11fe48cd1eab0c (
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
34
35
36
37
|
# Maintainer: Shayne Hartford <shayneehartford@gmail.com>
_pkgname=riden
pkgname="python-${_pkgname}-git"
pkgver=r19.d070961
pkgrel=2
pkgdesc="A python library for Riden RD power supplies"
arch=("any")
url="https://github.com/shaybox/${_pkgname}"
license=("MIT")
depends=(
"python"
"python-click"
"python-modbus-tk"
"python-pyserial"
)
makedepends=(
"python-poetry"
)
provides=("${_pkgname}" "python-${_pkgname}")
source=("git+${url}.git")
sha512sums=("SKIP")
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
poetry build --format wheel
}
package() {
cd "${srcdir}/${_pkgname}"
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps dist/*.whl
}
|