summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9c7b2339519b5ff24027479aeb599322cbfe8a2d (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: Alex Hirzel <alex at hirzel period us>

pkgname='python-sgp4'
_name="${pkgname#python-}"
pkgver='2.23'
pkgrel=3
pkgdesc="Track earth satellite TLE orbits using up-to-date 2010 version of SGP4"
url="https://pypi.org/project/sgp4/"
depends=('gcc-libs' 'glibc' 'python' 'python-numpy')
makedepends=('python-build' 'python-installer')
license=('MIT')
arch=('x86_64')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('d8addc53a2fb9f88dee6bfd401d2865b014cc0b57bf2cee69bdee8d9685d5429')

build() {
	cd "${srcdir}/${_name}-${pkgver}"
	python -m build --wheel --no-isolation
}

#check() {
#	cd "${srcdir}/${_name}-${pkgver}"
#	python sgp4/tests.py
#}

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