summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2da16ea5fed0efa578794b6da5f0f31b09043cd0 (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
# Maintainer: Jérôme Deuchnord <jerome@deuchnord.fr>

pkgname=python-kosmorrolib
pkgver=1.0.13
pkgrel=1
pkgdesc='A library to compute the ephemerides'

depends=(
	'python>=3.8.0'
	'python-skyfield'
	'python-skyfield-data'
	'python-dateutil'
)

makedepends=(
	'python-poetry-core'
	'python-build'
	'python-installer'
	'python-wheel'
)

arch=('any')
url='https://kosmorro.space/lib'
license=('AGPL')

source=("${pkgname}-v${pkgver}.tar.gz::https://codeload.github.com/Kosmorro/lib/tar.gz/refs/tags/v${pkgver}")
sha256sums=("d63e0cf8f58844efc73ea6b138be717b7cda57aeb6e6ce1a3e2a1a635513e06f")

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

package() {
	cd "${srcdir}/lib-${pkgver}"
	python -m installer --destdir="$pkgdir" dist/*.whl
}