blob: e12cb3eb638aa212b5cc95161583a81c0eddcecd (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
# Contributor: Ricardo Vieira (https://aur.archlinux.org/account/ricardomv)
# Contributor: MuPuF (https://aur.archlinux.org/account/MuPuF)
_pkgname="liquid-dsp"
pkgname="${_pkgname}-git"
pkgver=1.6.0+273.r7792.20241221.3d1213f92
pkgrel=1
pkgdesc="Digital signal processing library for software-defined radios"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="http://liquidsdr.org"
license=('MIT')
groups=()
depends=(
'glibc'
)
optdepends=(
'fftw: efficient FFT'
)
makedepends=(
'autoconf'
'automake'
'git'
'gcc'
'fftw'
'make'
)
provides=(
"${_pkgname}=${pkgver}"
)
conflicts=(
"${_pkgname}"
)
replaces=()
backup=()
options=()
install=
source=("${_pkgname}::git+https://github.com/jgaeddert/liquid-dsp.git")
noextract=()
sha256sums=('SKIP')
prepare() {
cd "${_pkgname}"
./bootstrap.sh
git log > "${srcdir}/git.log"
}
pkgver() {
cd "${_pkgname}"
_ver="$(git describe --tags | sed -E -e 's|^[vV]||' -e 's|\-g[0-9a-f]*$||' | tr '-' '+')"
_rev="$(git rev-list --count HEAD)"
_date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
_hash="$(git rev-parse --short HEAD)"
if [ -z "${_ver}" ]; then
error "Version could not be determined."
return 1
else
printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
fi
}
build() {
cd "$srcdir/${_pkgname}"
./configure \
--prefix=/usr \
--disable-debug-messages \
--disable-fftoverride
make
}
package() {
cd "$srcdir/${_pkgname}"
make DESTDIR="${pkgdir}" install
install -Dvm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" "CHANGELOG.md" "TROUBLESHOOTING" "README.md" "${srcdir}/git.log"
install -Dvm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
ln -svr "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" "${pkgdir}/usr/share/doc/${_pkgname}/LICENSE"
}
|