blob: 81270f8af36f12ad5dae35c5517214e6192ef8e0 (
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
|
# Maintainer: Quintin Scherrer <quitninscherrer@gmail.com>
pkgname=python-pyrtlsdr-git
_pkg=pyrtlsdr
pkgver=0.3.0
pkgrel=2
pkgdesc='A Python wrapper for librtlsdr'
arch=('any')
url='https://github.com/pyrtlsdr/pyrtlsdr'
license=('GPL3')
depends=('python-setuptools' 'rtl-sdr')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$_pkg::git+$url")
sha256sums=('SKIP')
pkgver() {
git -C "$_pkg" describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}
build() {
cd "$_pkg"
python -m build --wheel --no-isolation
}
package() {
cd "$_pkg"
PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl
}
|