summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1f6b1c7aba6c21052c41e61fab9b1df5d3003b0d (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
# Maintainer: Michal Wojdyla < micwoj9292 at gmail dot com >
pkgname=python-karney
pkgver=1.1.0
pkgrel=1
pkgdesc="Solves the direct and inverse geodesic problem"
arch=('any')
url="https://github.com/pbrod/karney"
license=('custom')
depends=('python' 'python-numpy')
makedepends=('python-build' 'python-installer' 'python-pdm-pep517')
optdepends=()
source=("https://github.com/pbrod/karney/archive/v${pkgver}.tar.gz")
noextract=()
sha256sums=('4a0cf4e28f614c2148ddea3bbff7758a04fa403af6fa709bf3a35a0ef11d7705')
validpgpkeys=()

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

package() {
    cd "karney-${pkgver}"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}