summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45e848b4ee2d72277848cdd8df14586b5e181482 (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
# Maintainer: Chuang Zhu <genelocated at yandex dot com>

pkgname=gnuradio-grnet-git
_reponame=gr-grnet
pkgver=r71.e6dfd14
pkgrel=1
pkgdesc='GNURadio TCP/UDP source and sink blocks rewritten in C++/Boost (gr-grnet)'
url='https://github.com/ghostop14/gr-grnet'
arch=('x86_64')
license=('GPL3')
depends=('gnuradio' 'libpcap')
makedepends=('git' 'cmake' 'boost' 'swig')
replaces=('gr-grnet')
provides=('gnuradio-grnet')
conflicts=('gnuradio-grnet')
source=("git+https://github.com/ghostop14/gr-grnet/#branch=master")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_reponame"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$_reponame"
  mkdir -p build
  cd build
  cmake \
    -Wno-dev \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    ..
  make
}

package() {
  cd "$srcdir/$_reponame/build"
  make DESTDIR="$pkgdir" install
}