summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 221da6cda440d00760b667a450e210b4004efa3d (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-timing_utils-git"
pkgver=3.10
pkgrel=1
pkgdesc="GNU Radio gr-timing_utils smart meters modules (RECESSIM)"
arch=('any')
url='https://github.com/sandialabs/gr-timing_utils/'
license=('GPL')
depends=('gnuradio' 'boost' 'gr-pdu_utils')
makedepends=('git' 'cmake' 'doxygen')
provides=('gr-timing_utils')
source=('git+https://github.com/sandialabs/gr-timing_utils.git')
sha256sums=('SKIP')

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

build() {
	pushd gr-timing_utils
	cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_FLAGS="-fpermissive"
	cmake --build build -j
	popd
}

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