summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 06f2366dfdac54cc6d277635776b67b4114dc34c (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
# Maintainer: Nicolas Farmer <nicolas dot farmer at proton dot me>

pkgname="gr-smart_meters-git"
pkgver=3.10
pkgrel=1
pkgdesc="GNU Radio smart meters block (RECESSIM)"
arch=('x86_64' 'aarch64')
url='https://github.com/BitBangingBytes/gr-smart_meters'
license=('GPL')
depends=('gnuradio' 'boost' 'graphviz' 'pybind11' 'gr-pdu_utils' 'gr-timing_utils' 'gr-fhss_utils')
makedepends=('git' 'cmake' 'doxygen')
optdepends=('gr-fosphor: to view input spectrum'
	    'python-gmplot: plot GPS data on Google Maps')
provides=('gr-smart_meters')
source=('git+https://github.com/BitBangingBytes/gr-smart_meters.git')
sha256sums=('SKIP')

prepare() {
	pushd gr-smart_meters
	git checkout maint-3.10
	popd
}

build() {
	pushd gr-smart_meters
	cmake -B build -DCMAKE_INSTALL_PREFIX=/usr 
	cmake --build build -j
	popd
}

package() {
	pushd gr-smart_meters
	DESTDIR="$pkgdir" cmake --build build -t install
	popd
}