blob: 5b668319c95de8306063ea536cd4d53f0febf609 (
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
|
# Maintainer: SteamedFish <steamedfish@hotmail.com>
pkgbase=soapysddc-git
pkgname=(soapysddc-git libsddc-git)
pkgver=r271.7e2c0e2
pkgrel=1
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/ik1xpv/ExtIO_sddc"
license=('MIT')
depends=('libusb' 'fftw' 'soapysdr')
makedepends=('cmake' 'git')
source=("git+https://github.com/ik1xpv/ExtIO_sddc.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/ExtIO_sddc"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cmake -B build \
-S "$srcdir/ExtIO_sddc" \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_INSTALL_PREFIX=/usr
# make -C build
cmake --build build --config Release
}
package_soapysddc-git() {
pkgdesc="Soapy SDR plugin for wideband SDR receivers like BBRF103, RX-666, RX888, HF103, etc"
provides=(soapysddc)
conflicts=(soapysddc)
make -C build DESTDIR="$pkgdir/" install
}
package_libsddc-git() {
pkgdesc="A low level library for wideband SDR receivers like BBRF103, RX-666, RX888, HF103, etc"
provides=(libsddc)
conflicts=(libsddc)
install -Dm644 "$srcdir"/ExtIO_sddc/libsddc/libsddc.h "$pkgdir"/usr/include/libsddc.h
cd build/libsddc
mkdir -p "$pkgdir/usr/lib"
for file in libsddc.so*; do
cp -Pv $file "$pkgdir/usr/lib/$file"
done
}
|