blob: 73973f703ce62058c7bac4e46827a51f524392f9 (
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
|
pkgname=python-adafruit-nrfutil-git
_pkgname=Adafruit_nRF52_nrfutil
pkgver=20220629.1361059
pkgrel=1
pkgdesc="Modified version of Nordic's nrfutil 0.5.x for use with the Adafruit Feather nRF52"
_url="github.com/adafruit/${_pkgname}"
url="https://${_url}"
arch=('any')
license=('BSD')
depends=( # Based on requirements.txt
'python-pyserial>=2.7'
'python-click>=5.1'
'python-ecdsa>=0.13'
'python-behave'
)
makedepends=('git')
source=("${_pkgname}::git+https://${_url}")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git log -1 --format='%cd.%h' --date=short | tr -d -
}
package() {
cd "${srcdir}/${_pkgname}"
python setup.py install --root="$pkgdir/" --optimize=1
install -Dpm644 'license.txt' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|