summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 334ed4dcd4cd9bc0410341b185c04a11931fb800 (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
# Maintainer: Blair Bonnett <blair dot bonnett at gmail dot com>

pkgname=python-pyepsg
pkgver=0.4.0
pkgrel=2
pkgdesc='A simple interface to https://epsg.io/'
url='https://pyepsg.readthedocs.io/'
arch=('any')
license=('LGPL3')

depends=('python-requests')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')

_pypi=pyepsg
source=(
  "https://files.pythonhosted.org/packages/source/${_pypi::1}/$_pypi/$_pypi-$pkgver.tar.gz"
)
sha256sums=(
  '2d08fad1e7a8b47a90a4e43da485ba95705923425aefc4e2a3efa540dbd470d7'
)

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

package() {
  cd "$_pypi-$pkgver"
  python -m installer --destdir="$pkgdir" "dist/$_pypi-$pkgver-"*.whl
}