blob: 04160e68f52f8bd66ed82844d5822e53e3687141 (
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
|
# Maintainer: Andrew O'Neill <andrew at haunted dot sh>
pkgname=satdump
pkgver=1.2.2
pkgrel=5
pkgdesc='A generic satellite processing software'
arch=('x86_64')
license=('GPL-3.0-only')
url='https://github.com/SatDump/SatDump'
depends=('airspy' 'fftw' 'glfw' 'hackrf' 'jemalloc' 'libad9361' 'libpng' 'libvolk' 'nng' 'ocl-icd' 'portaudio' 'rtl-sdr' 'zenity' 'zstd')
makedepends=('boost' 'cmake' 'opencl-headers' 'lua54')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz"
"${pkgname}.patch")
optdepends=('limesuite' 'bladerf')
sha256sums=('2ab7c6126e426ad79972b274cc380c0bb04c9e755d746d67f3af92c1dd569209'
'8f639d1c03d748e3eca65e6e89f77e490139f45d3da8d2ee1acc7aa6b5098e26')
prepare() {
cd "${srcdir}"
patch -p0 -i ${pkgname}.patch
}
build() {
local cmake_options=(
-B build
-S "SatDump-${pkgver}"
-W no-dev
-D CMAKE_BUILD_TYPE=Release
-D CMAKE_INSTALL_PREFIX=/usr
)
cmake "${cmake_options[@]}"
CPATH=/usr/include/lua5.4:$CPATH cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
|