blob: 86fe3f6a5fb555deafaf7412c7da66014bc19acf (
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: SteamedFish <steamedfish@hotmail.com>
# Contributor: Erik Bročko <erik.brocko@letemsvetemapplem.eu>
pkgname=csdr-luarvique-git
pkgver=0.18.22.r2.g7f178a0
pkgrel=1
pkgdesc="A simple DSP library and command-line tool for Software Defined Radio."
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/luarvique/csdr"
license=('GPL3')
depends=('gcc-libs' 'libsamplerate' 'fftw')
makedepends=('git' 'cmake')
conflicts=('csdr-luarvique' 'csdr')
provides=('csdr-luarvique' 'csdr')
source=("$pkgname"::"git+https://github.com/luarvique/csdr.git")
md5sums=('SKIP')
#######################
# The fax image height is hardcoded to 1400
# If you wants to change the fax image height you must patch the source
#
# diff --git a/include/fax.hpp b/include/fax.hpp
# index f8a46b7..0c7c282 100644
# --- a/include/fax.hpp
# +++ b/include/fax.hpp
# @@ -72,7 +72,7 @@ namespace Csdr {
# FREQ_CARRIER = 1900,
# FREQ_DEVIATION = 400,
#
# - HEIGHT_IOC576 = 1400,
# + HEIGHT_IOC576 = 2300,
# HEIGHT_IOC288 = 700,
#
# // HEIGHT_IOC576 = 1200,
#
#######################
pkgver() {
cd "$srcdir/$pkgname"
# use git tag or fall back to number of revisions
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cmake -B build -S "$srcdir/$pkgname" \
-DCMAKE_INSTALL_PREFIX=/usr \
-Wno-dev
make -C build
}
package() {
make -C build DESTDIR="$pkgdir/" install
}
|