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

pkgname="gr-pdu_utils-git"
pkgver=3.10
pkgrel=1
pkgdesc="GNU Radio pdu_utils smart meters modules (RECESSIM)"
arch=('x86_64' 'aarch64')
url='https://github.com/sandialabs/gr-pdu_utils/'
license=('GPL')
depends=('gnuradio' 'boost')
makedepends=('git' 'cmake' 'doxygen')
provides=('gr-pdu_utils')
source=('git+https://github.com/sandialabs/gr-pdu_utils.git')
sha256sums=('SKIP')

prepare() {
	pushd gr-pdu_utils
	git checkout maint-3.10
	# https://wiki.recessim.com/view/Gr-smart_meters_Setup_on_other_distros
	git fetch origin refs/pull/23/head:pull_23
	git checkout pull_23
	popd
}

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

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