blob: c843f0ae3d15ebbfe9c7c76b7421b235a4102e04 (
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
45
46
|
# Maintainer: EndlessEden <eden [at] rose.place>
# Upstream Maintainer: Filipe LaĆns (FFY00) <filipe.lains@gmail.com>
pkgname=libad9361-git
gitname=libad9361
_pkgname=$gitname-iio
pkgver=0.2.f8003df
pkgrel=1
pkgdesc='IIO AD9361 library for filter design and handling, multi-chip sync, etc. git Version'
arch=('x86_64')
url="https://github.com/analogdevicesinc/$_pkgname"
license=('LGPL2.1')
depends=('libiio.so')
makedepends=('cmake' 'doxygen' 'graphviz' 'git' 'python-sphinx_rtd_theme')
provides=("$gitname" "$pkgname" 'libad9361.so')
conflicts=("$gitname")
source=("$pkgname::git+$url.git")
sha512sums=('SKIP')
pkgver() {
cd $pkgname
echo $(echo $(git ls-remote --tags --sort="v:refname" -h 2>&1) | grep tags | tail -1 | sed 's,v,\n,g'|tail -1).$(git rev-parse --short HEAD)
}
build() {
mkdir -p $pkgname/build
cd $pkgname/build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DMATLAB_BINDINGS=ON \
-DPYTHON_BINDINGS=ON \
-DENABLE_PACKAGING=OFF
make
}
package() {
cd $pkgname/build
make DESTDIR="$pkgdir" install
}
|