summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a752d23bbe9e1a090f15ff620847808befe5729 (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
# Maintainer: Ivy Huang <imyxh@imyxh.net>

_name="srt-py"
pkgbase="$_name"-git
pkgname="$pkgbase"
pkgver=v0.9.0.r59.g5f82397
pkgrel=1
pkgdesc="Small Radio Telescope Control Code for Python"
url="https://github.com/MITHaystack/srt-py"
license=('BSD')
arch=('any')
depends=('python-numpy' 'python-scipy' 'soapysdr' 'soapyrtlsdr-git' 'gnuradio'
         'gnuradio-osmosdr' 'digital_rf-git' 'python-pyzmq' 'python-pyserial'
         'python-astropy' 'python-yamale' 'python-dash'
         'python-dash-bootstrap-components' 'python-plotly' 'python-pandas'
         'python-waitress')
makedepends=('git' 'python-setuptools')
source=('git+https://github.com/MITHaystack/srt-py.git')
sha512sums=('SKIP')

pkgver() {
    cd "$srcdir/$_name"
    git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$_name"
    python setup.py build
}

package() {
    cd "$_name"
    python setup.py install --root="$pkgdir" --optimize=1
}