blob: 262fc163556c5d32a6ae0395e805a8f7084b1e48 (
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
|
# Maintainer: dreieck
# Contributor: Roberto Nobrega <rwnobrega@gmail.com>
_pkgname='gr-rds'
pkgname="${_pkgname}-git"
epoch=1
pkgver=3.10+r349.20241108.da8dd99
pkgrel=2
pkgdesc="An FM-RDS Receiver for GNU Radio"
arch=('i686' 'x86_64')
license=('GPL-3.0-or-later')
depends=('boost-libs' 'gcc-libs' 'glibc' 'gnuradio>=3.9' 'python>=3' 'python-pyqt5')
makedepends=('boost' 'cmake' 'doxygen' 'fmt' 'git' 'libvolk' 'pybind11' 'python-pygccxml' 'spdlog' 'swig')
optdepends=()
provides=("${_pkgname}" "${_pkgname}=${pkgver}")
conflicts=("${_pkgname}" "${_pkgname}-doc")
url="https://github.com/bastibl/gr-rds"
source=("${_pkgname}::git+https://github.com/bastibl/gr-rds.git")
sha256sums=('SKIP')
prepare() {
cd "${srcdir}/${_pkgname}"
mkdir -p build
}
pkgver() {
cd "${srcdir}/${_pkgname}"
_ver="$(git describe --tags | awk -F- '{print $1}' | sed -E 's|^v||')"
_rev="$(git rev-list --count HEAD)"
_date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
_hash="$(git rev-parse --short HEAD)"
if [ -n "${_ver}" ]; then
printf "%s" "${_ver}+r${_rev}.${_date}.${_hash}"
else
error "${FUNCNAME[0]}: Could not determin version. Aborting."
return 1
fi
}
build() {
cd "${srcdir}/${_pkgname}"
cd 'build'
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DENABLE_DOXYGEN=ON \
-DENABLE_GRC=ON \
-DENABLE_PYTHON=ON \
-DENABLE_TESTING=ON \
..
make
}
package() {
cd "${srcdir}/${_pkgname}"
cd 'build'
make DESTDIR="${pkgdir}" install
cd "${srcdir}/${_pkgname}"
for _docfile in MANIFEST.md README.md; do
install -v -D -m644 "${_docfile}" "${pkgdir}/usr/share/doc/${pkgname}/${_docfile}"
done
}
|