summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b0e1703d82210cbdbdcdfb7d3f5d8286896cf794 (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: Oystein Sture <oysstu@gmail.com>
pkgname=python-nvector
pkgver=0.7.7
pkgrel=2
pkgdesc="Nvector is a suite of tools written in Python to solve geographical position calculations."
arch=('any')
url="https://github.com/pbrod/nvector"
license=('custom')
depends=('python' 'python-numpy' 'python-scipy' 'python-geographiclib' 'python-matplotlib' 'python-cartopy')
makedepends=('python-setuptools' 'python-pytest-runner')
optdepends=()
source=("https://github.com/pbrod/nvector/archive/v${pkgver}.tar.gz")
noextract=()
sha256sums=('a85069f25f482abfef655a83cef82ed03bffd62ed4d65a83fdc788ea1becd4f9')
validpgpkeys=()

build() {
    cd "nvector-${pkgver}"
    python setup.py build
}

package() {
    cd "nvector-${pkgver}"
    python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
    install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}