blob: 792484280107f0aec01759c682036747456881a9 (
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
|
# Maintainer: Filipe LaĆns (FFY00) <filipe.lains@gmail.com>
pkgname=pylms7002soapy-git
_pkgname=pyLMS7002Soapy
pkgver=r2.ea230dc
pkgrel=1
pkgdesc="Python bindings for LMS7002M with SoapySDR backend"
arch=('any')
url="https://github.com/myriadrf/pyLMS7002Soapy"
license=('Apache')
makedepends=('git')
provides=('pylms7002soapy')
conflicts=('pylms7002soapy')
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd "$srcdir"/$_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir"/$_pkgname
python2 setup.py build
}
package() {
cd "$srcdir"/$_pkgname
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
mkdir -p "$pkgdir"/usr/share/$_pkgname
cp -dr --no-preserve=ownership examples/ "$pkgdir"/usr/share/$_pkgname/
}
|