blob: 150df47da066232b12b3cd282771a864751f4621 (
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
|
# $Id$
# Maintainer: Shane Stone <shanewstone at gmail>
pkgname=('python-spiceypy')
pkgver=2.1.0
pkgrel=2
pkgdesc="A Python wrapper for the NAIF C SPICE Toolkit (N66) written using ctypes."
arch=('any')
url="https://github.com/AndrewAnnex/SpiceyPy"
license=('MIT')
makedepends=('python-six>=1.9.0' 'python-numpy>=1.8.0' 'python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/andrewannex/spiceypy/archive/v$pkgver.tar.gz")
md5sums=('be29fd2060b5a61f9f3e271835e82022')
build() {
echo "Building Python3"
cd SpiceyPy-$pkgver
python setup.py build
}
package() {
depends=('python-six>=1.9.0' 'python-numpy>=1.8.0')
optdepends=('python-pytest>=2.9.0: testing')
cd SpiceyPy-$pkgver
python setup.py install --skip-build --root="$pkgdir" --optimize=1
mv -v $srcdir/SpiceyPy-$pkgver/spiceypy/utils/spice.so $pkgdir/usr/lib/python3*/site-packages/spiceypy/utils/
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|