blob: c259c4f2bec95bcc6e2d974f991552467654b8e9 (
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
|
# Maintainer: Maurizio D'Addona <mauritiusdadd@gmai.com>
_pkgname="desimodel"
pkgname=python-desimodel
pkgver=0.19.0
pkgrel=1
pkgdesc="Information about DESI hardware designs in machine readable formats"
arch=(any)
url="https://github.com/desihub/desispec"
license=('BSD')
depends=('python-setuptools' 'python-requests' 'python-astropy' 'python-healpy'
'python-desiutil' 'python-scipy' 'python-pyyaml' 'python-numpy')
source=("$_pkgname-$pkgver"::"https://github.com/desihub/${_pkgname}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('c02dd948d40dab0536d2e345b0195fbf47f03aef94ffde15071bf4927c341ead')
prepare() {
cd "$srcdir/${_pkgname}-$pkgver"
sed -e "s/^setup_keywords\['use_2to3'\]/#setup_keywords['use_2to3']/g" -i "setup.py"
}
build() {
cd "$srcdir/${_pkgname}-$pkgver"
python setup.py build
}
package() {
cd "$srcdir/${_pkgname}-$pkgver"
install -dm755 "$pkgdir/usr"
install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 "LICENSE.rst" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
python setup.py install --root="$pkgdir"
}
|