summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ac653b868f72aa0238da7cf30ede27a688384cd (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: Bram Oosterlynck <bram.oosterlynck@gmail.com>
pkgname=python-can-i-charge
gitname=can-i-charge
pkgver=0.6.5
pkgrel=1
pkgdesc="A CLI to fetch the status of charging stations "
arch=('any')
url="https://github.com/boosterl/can-i-charge"
license=('GPLv3')
depends=(
  'glibc'
  'python'
  'python-click'
  'python-prometheus_client'
  'python-shellrecharge'
)
makedepends=(
  'python-build'
  'python-installer'
)
source=("${pkgname}::git+https://github.com/boosterl/${gitname}.git#tag=${pkgver}")
sha256sums=('SKIP')

build() {
  cd "${pkgname}"
  python -m build --wheel --no-isolation
}

package() {
  cd "${pkgname}"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 README.md "${pkgdir}"/usr/share/doc/${pkgname}/README.md
}