summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dfa592d1318136a7bdd1cd2ae2068b8d0bc84841 (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: Maurizio D'Addona <mauritiusdadd@gmail.com>

_pkgname="desisim"
pkgname=python-desisim
pkgver=0.38.0
pkgrel=1
pkgdesc="Scripts and packages for simulating DESI spectra"
arch=(any)
url="https://github.com/desihub/desim"
license=('BSD')
depends=('python-setuptools' 'python-requests' 'python-astropy' 'python-healpy'
         'python-pytz' 'python-speclite' 'python-fitsio' 'python-numba'
         'python-desiutil' 'python-desimodel' 'python-specter')

source=("$_pkgname-$pkgver"::"https://github.com/desihub/${_pkgname}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('cf81bfbca50611f7978a1f51e19ae784d9615759dd16270729b7658351cb0a94')

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"
}