blob: c5b412d7190b19f25353b5d16f10193edff36c47 (
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
|
pkgname=python-radexreader
pkgver=1.2.4
pkgrel=2
pkgdesc="Reader for the RADEX RD1212 and ONE Geiger counters"
arch=('any')
url='https://github.com/luigifab/python-radexreader'
license=('GPL2')
depends=('python-pyusb' 'python-pyserial')
makedepends=('python-setuptools')
source=("https://github.com/luigifab/python-radexreader/archive/v${pkgver}/python-radexreader-${pkgver}.tar.gz")
md5sums=("b49e82f2944d0cd5613730b8bdb4ae35")
prepare() {
cd "$pkgname-$pkgver"
sed -i 's/python3-radexreader /python3-radexreader-zst /g' src/radexreader.py
sed -i 's/\#\!\/usr\/bin\/python3/\#/g' src/radexreader/__init__.py
}
build() {
cd "$pkgname-$pkgver/src"
python setup.py build
}
package() {
cd "$pkgname-$pkgver/src"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dpm 755 radexreader.py "$pkgdir/usr/bin/radexreader"
install -Dpm 644 ../debian/radexreader.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
install -Dpm 644 ../debian/radexreader.fr.1 "$pkgdir/usr/share/man/fr/man1/$pkgname.1"
install -Dpm 644 ../debian/udev "$pkgdir/usr/lib/udev/rules.d/60-$pkgname.rules"
install -Dpm 644 ../README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dpm 644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|