blob: 1670d335c86bc01c8cea9e0f33cad35a53a1e2ae (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: f4iey <f4iey@f6kgl.ampr.org>
pkgname=radiosonde_auto_rx
pkgver=1.7.4
pkgrel=1
pkgdesc="Automatically Track Radiosonde Launches using RTLSDR"
arch=('x86_64')
url="https://github.com/projecthorus/radiosonde_auto_rx"
license=('GPL-3')
makedepends=(cmake git)
depends=(python python-numpy python-setuptools python-crcmod python-requests python-dateutil python-pip python-flask python-flask-socketio python-semver python-simplekml sox git libtool usbutils libusb rng-tools libsamplerate lapack rtl-sdr)
source=(https://codeload.github.com/projecthorus/$pkgname/tar.gz/refs/tags/v$pkgver)
sha256sums=('SKIP')
prepare() {
mkdir -p $srcdir/build
tar -C $srcdir/build/ -xvf v$pkgver
}
build() {
cd $srcdir/build/$pkgname-$pkgver/auto_rx
./build.sh || return 1
}
package() {
cd "${srcdir}/build/$pkgname-$pkgver"
install -Dm755 "auto_rx/station.cfg.example" "$pkgdir/opt/$pkgname/auto_rx/station.cfg"
install -Dm755 "auto_rx/auto_rx.py" "$pkgdir/opt/$pkgname/auto_rx/auto_rx.py"
# Setting defconfig for systemd
sed -i "s/home\/pi/opt/g" "auto_rx/auto_rx.service"
sed -i "s/User=pi//" "auto_rx/auto_rx.service"
install -Dm644 "auto_rx/auto_rx.service" "$pkgdir/etc/systemd/system/auto_rx.service"
# auto_rx folder
install -dm755 "$pkgdir/opt/$pkgname/auto_rx/log"
cp -r "auto_rx/test" "$pkgdir/opt/$pkgname/auto_rx/"
cp -r "auto_rx/utils" "$pkgdir/opt/$pkgname/auto_rx/"
cp -r "auto_rx/autorx" "$pkgdir/opt/$pkgname/auto_rx/"
# Shared libraries
install -Dm755 "auto_rx/dft_detect" "$pkgdir/opt/$pkgname/auto_rx/dft_detect"
install -Dm755 "auto_rx/fsk_demod" "$pkgdir/opt/$pkgname/auto_rx/fsk_demod"
install -Dm755 "auto_rx/imet4iq" "$pkgdir/opt/$pkgname/auto_rx/imet4iq"
install -Dm755 "auto_rx/mk2a1680mod" "$pkgdir/opt/$pkgname/auto_rx/mk2a1680mod"
install -Dm755 "auto_rx/rs41mod" "$pkgdir/opt/$pkgname/auto_rx/rs41mod"
install -Dm755 "auto_rx/dfm09mod" "$pkgdir/opt/$pkgname/auto_rx/dfm09mod"
install -Dm755 "auto_rx/m10mod" "$pkgdir/opt/$pkgname/auto_rx/m10mod"
install -Dm755 "auto_rx/m20mod" "$pkgdir/opt/$pkgname/auto_rx/m20mod"
install -Dm755 "auto_rx/rs92mod" "$pkgdir/opt/$pkgname/auto_rx/rs92mod"
install -Dm755 "auto_rx/lms6Xmod" "$pkgdir/opt/$pkgname/auto_rx/lms6Xmod"
install -Dm755 "auto_rx/meisei100mod" "$pkgdir/opt/$pkgname/auto_rx/meisei100mod"
install -Dm755 "auto_rx/imet54mod" "$pkgdir/opt/$pkgname/auto_rx/imet54mod"
install -Dm755 "auto_rx/mp3h1mod" "$pkgdir/opt/$pkgname/auto_rx/mp3h1mod"
install -Dm755 "auto_rx/mts01mod" "$pkgdir/opt/$pkgname/auto_rx/mts01mod"
install -Dm755 "auto_rx/iq_dec" "$pkgdir/opt/$pkgname/auto_rx/iq_dec"
install -Dm755 "auto_rx/weathex301d" "$pkgdir/opt/$pkgname/auto_rx/weathex301d"
#Inform th user that the building is done and the config file is in /opt/
echo -e "\033[32mAll Done!\nMake sure to edit the \033[93mstation.cfg\033[32m in \033[33m/opt/$pkgname/auto_rx!\033[0m"
}
|