blob: 25a5cc162b759ac2d310716fe3e84c3b6fd599a4 (
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
|
# Maintainer: Alexander Couzens <lynxis@fe80.eu>
pkgname=libxtrxll-git
_gitname=libxtrxll
pkgver=r42.1b6eddfbedc7
pkgrel=2
pkgdesc="Low level XTRX hardware abstraction library"
arch=('armv7h' 'i686' 'x86_64')
url="https://github.com/xtrx-sdr/libxtrxll"
license=('LGPL')
makedepends=('git' 'cmake')
depends=('libusb3380')
provides=('libxtrxll')
conflicts=('libxtrxll')
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd "$srcdir"/$_gitname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=12 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
}
|