blob: 38ee5839b6f292864fcec6a053c2ae8b500dbc92 (
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
38
39
40
|
# Maintainer: quietvoid <tcChlisop0@gmail.com>
pkgname=pyhgtmap
pkgver=3.7
pkgrel=2
pkgdesc="Fork of official phyghtmap - Generate OSM contour lines from NASA SRTM data"
_outname="${pkgname}-v${pkgver}"
arch=('x86_64')
url="https://github.com/agrenott/pyhgtmap"
license=('GPL2')
depends=(
'python-beautifulsoup4'
'python-class-registry'
'python-colorlog'
'python-contourpy'
'python-matplotlib'
'python-nptyping'
'python-numpy'
'python-npyosmium'
'python-pybind11-rdp'
'python-pydrive2'
'python-scipy'
'python-shapely'
)
makedepends=('python-build' 'python-installer' 'python-wheel')
optdepends=('gdal' 'python-gdal')
source=("${_outname}::git+https://github.com/agrenott/pyhgtmap.git#tag=v${pkgver}")
sha256sums=('SKIP')
build() {
cd "${_outname}"
python -m build --wheel
}
package() {
cd "${_outname}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|