summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa4a8f86e533b40db74f5799b9c2fde56d9af3b7 (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
# Maintainer: Bram Oosterlynck <bram.oosterlynck@gmail.com>
pkgname=python-shellrecharge
gitname=python-shellrecharge
pkgver=0.1.21
pkgrel=1
pkgdesc="Python 3 package to retrieve public and private EV charger data from Shell Recharge "
arch=('any')
url="https://github.com/cyberjunky/python-shellrecharge"
license=('MIT')
depends=(
  'glibc'
  'python'
  'python-aiohttp'
  'python-aiohttp-retry'
  'python-bs4'
  'python-pydantic'
  'python-yarl'
)
makedepends=(
  'python-build'
  'python-installer'
  'python-pdm-backend'
)
source=("${pkgname}::git+https://github.com/cyberjunky/${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
}