blob: f4c64c35c0692d605b30e21859884415a16fc6a3 (
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
39
40
41
42
|
# Arch User repository PKGBUILD file
# Builds the python interface for the SOFA library
# Contributor: Roelof Rietbroek <roelof@wobbly.earth>
pkgname=pysofa
pkgver=0.1.1
pkgrel=1
pkgdesc="Python interface to SOFA C library (Standards of Fundamental Astronomy)"
arch=('any')
url="https://code.google.com/archive/p/pysofa/"
license=('SOFA License')
groups=()
depends=("sofa-shared" "python-numpy")
makedepends=()
source=("https://pypi.python.org/packages/f5/fd/557bc955527164df6d5699ba2369415a26767a90e848ce362600435d4553/pysofa-$pkgver.tar.gz" "octonotationpatch.diff" "init.patch")
noextract=()
md5sums=('962be6439044b4ff666f735b2207aaa8'
'5e6cef758d9861cba2e72eb2faff3ee4'
'60a155956101026a32c79eb22f03602f')
validpgpkeys=()
prepare() {
_startdir=${PWD}
cd ${srcdir}
#patch some files to get rid of the octo notation (doesn't work in python 3)
patch pysofa-${pkgver}/pysofa/pysofa_ctypes.py octonotationpatch.diff
patch pysofa-${pkgver}/pysofa/__init__.py init.patch
cd ${_startdir}
}
build() {
cd ${srcdir}/pysofa-${pkgver}/
python ./setup.py build
cd ${_startdir}
}
package() {
cd ${srcdir}/pysofa-${pkgver}/
python ./setup.py install --root="${pkgdir}/"
cd ${_startdir}
}
|