summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e38e7cef90df8b90e111567af12d015c1d9d0077 (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: Vadim Yanitskiy <axilirator@gmail.com>

pkgname='gr-ieee802-11-git'
pkgver=r352.0c0fca8
pkgrel=2
pkgdesc="An IEEE 802.11 a/g/p transceiver for GNU Radio."
arch=('i686' 'x86_64')
url="https://github.com/bastibl/gr-ieee802-11"
license=('GPL3')
depends=('gnuradio' 'log4cpp' 'gr-foo')
makedepends=('cmake' 'boost')
conflicts=('gr-ieee802-11')
provides=('gr-ieee802-11')
source=('git+https://github.com/bastibl/gr-ieee802-11#branch=maint-3.10')
sha1sums=('SKIP')
_gitname=gr-ieee802-11

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

build() {
  cd "$_gitname"
  mkdir build && cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ../
  make
}

package() {
  cd "$_gitname"
  cd build
  make DESTDIR=${pkgdir} install
}

# vim:set ts=2 sw=2 et: