summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d3da65126b736830926988d883d7aaaeb487da1 (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: Filipe LaĆ­ns (FFY00) <filipe.lains@gmail.com>
pkgname=lms7002m-driver-git
_gitname="LMS7002M-driver"
pkgver=r241.90cd852
pkgrel=1
pkgdesc="A portable driver for the LMS7002M dual transceiver"
arch=('any')
url="https://github.com/myriadrf/LMS7002M-driver"
license=('Apache')
makedepends=('git' 'cmake')
provides=('lms7002m-driver')
conflicts=('lms7002m-driver')
source=("git+$url")
md5sums=('SKIP')

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

build() {
  mkdir -p "$srcdir"/$_gitname/build
  cd "$srcdir"/$_gitname/build

  cmake .. \
    -DBUILD_SHARED_LIBS=ON \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release

  make
}

package() {
  cd "$srcdir"/$_gitname/build

  make DESTDIR="$pkgdir" install
}