blob: b5c42a121729e9ed979ba72650564044294fbe68 (
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
41
42
43
44
|
# Maintainer: Alexander Couzens <lynxis@fe80.eu>
pkgname=libxtrx-git
pkgver=r77.acb0b1cf7ab9
pkgrel=2
pkgdesc="High level API for the xtrx SDR"
_gitname=libxtrx
arch=('any')
url="https://github.com/xtrx-sdr/libxtrx"
license=('LGPL')
makedepends=('git' 'cmake')
depends=('liblms7002m-xtrx'
'libxtrxdsp'
'libxtrxll'
'qcustomplot'
'soapysdr')
source=("git+$url")
md5sums=('SKIP')
provides=('libxtrx')
conflicts=('libxtrx')
pkgver() {
cd "$srcdir"/$_gitname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=12 HEAD)"
}
build() {
cd "$srcdir/$_gitname"
mkdir -p build
cd build
cmake .. \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Debug
make
}
package() {
cd "$srcdir"/$_gitname/build
make DESTDIR="$pkgdir" install
}
|