diff options
author | Sergej Pupykin | 2020-11-10 23:44:49 +0300 |
---|---|---|
committer | Sergej Pupykin | 2020-11-10 23:44:49 +0300 |
commit | 80c2777ff6b3f3fba887051d388637add475079c (patch) | |
tree | e8a17191f9b796a78944081c5a8eeddbf50d188c | |
parent | eb27a0bb622260b97c0333f0ea7f6098f502781f (diff) | |
download | aur-80c2777ff6b3f3fba887051d388637add475079c.tar.gz |
upd
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 12 insertions, 15 deletions
@@ -1,14 +1,12 @@ pkgbase = nrfutil pkgdesc = nrfutil command line utility and the nordicsemi library - pkgver = 5.2.0 + pkgver = 6.1 pkgrel = 1 url = https://github.com/NordicSemiconductor/pc-nrfutil arch = any license = MIT - depends = python2 + depends = python-pip options = !emptydirs - source = nrfutil-5.2.0.tar.gz::https://github.com/NordicSemiconductor/pc-nrfutil/archive/v5.2.0.tar.gz - sha256sums = SKIP pkgname = nrfutil @@ -1,23 +1,22 @@ # Maintainer: Franck Lucien Duriez <franck.lucien.duriez@gmail.com> pkgname=nrfutil -pkgver=5.2.0 +pkgver=6.1 pkgrel=1 pkgdesc="nrfutil command line utility and the nordicsemi library" arch=('any') url="https://github.com/NordicSemiconductor/pc-nrfutil" license=('MIT') -depends=('python2') +depends=('python') +depends=('python-pip') options=(!emptydirs) -source=("$pkgname-$pkgver.tar.gz::https://github.com/NordicSemiconductor/pc-nrfutil/archive/v$pkgver.tar.gz") -sha256sums=(SKIP) - -build() { - cd "$srcdir/pc-$pkgname-$pkgver" - python2 setup.py build -} +source=() +sha256sums=() package() { - cd "$srcdir/pc-$pkgname-$pkgver" - python2 setup.py install --root="$pkgdir/" --optimize=1 + PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir"/usr/lib/nrfutil-bundle --ignore-installed nrfutil==$pkgver + install -dm0755 "$pkgdir"/usr/bin + echo "#!/bin/bash +PYTHONPATH=/usr/lib/nrfutil-bundle/usr/lib/python3.8/site-packages/ exec /usr/lib/nrfutil-bundle/usr/bin/nrfutil \$*" >"$pkgdir"/usr/bin/nrfutil + chmod a+x "$pkgdir"/usr/bin/nrfutil } |