summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0765cb1d6d545090e01accba1563d79308355f36 (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
# Maintainer: envolution
# Contributor: Astro Benzene <universebenzene at sina dot com>
pkgname=python-novas_de405
_pyname=${pkgname#python-}
pkgver=1997.1
pkgrel=3
pkgdesc="JPL DE405 ephemeris needed by the NOVAS package"
arch=('i686' 'x86_64')
url="https://github.com/brandon-rhodes/python-novas"
license=('custom')
depends=(python)
makedepends=(python-build python-installer python-wheel)
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
md5sums=('86341c564b5b97ca8693f1b25135efd8')

build() {
  cd "${_pyname}-${pkgver}"
  python -m build --wheel --no-isolation
}
package() {
  cd "${_pyname}-${pkgver}"
  install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" README
  python -m installer --destdir="$pkgdir" dist/*.whl
}