summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergej Pupykin2020-11-10 23:44:49 +0300
committerSergej Pupykin2020-11-10 23:44:49 +0300
commit80c2777ff6b3f3fba887051d388637add475079c (patch)
treee8a17191f9b796a78944081c5a8eeddbf50d188c
parenteb27a0bb622260b97c0333f0ea7f6098f502781f (diff)
downloadaur-80c2777ff6b3f3fba887051d388637add475079c.tar.gz
upd
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD21
2 files changed, 12 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e6588cc7fba..fdf397f5dbe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index f373a5252aa..15ccba0d56d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}