summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 98efa8199f6fd7f4fcea0cba726c56f414b64aa3 (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: FFY00 <filipe.lains@gmail.com>
pkgname=soapyuhd-git
_pkgname=SoapyUHD
pkgver=0.3.4.r0.55da7da
pkgrel=1
pkgdesc="Soapy SDR plugin for UHD supported SDR devices"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/pothosware/SoapyUHD"
license=('GPL3')
depends=('boost' 'libuhd' 'soapysdr')
makedepends=('git' 'cmake')
provides=('soapyuhd')
conflicts=('soapyuhd')
source=("git+$url")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir"/$_pkgname
  git describe --long --tags | sed 's/soapy-uhd-//g;s/^v//;s/\([^-]*-\)g/r\1/;s/-/./g;s/\.rc./rc/g'
}

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

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

  make
}

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

  make DESTDIR="$pkgdir" install
}