summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSergej Pupykin2017-10-03 11:27:14 +0300
committerSergej Pupykin2017-10-03 11:27:14 +0300
commit35b2388b90dd1bb50db35531ab4b78db618ac1df (patch)
tree3017700190474993faa906470d3b40f8fd5ba3ce /PKGBUILD
downloadaur-nrftool.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3b48c03fb2b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>
+
+pkgname=nrftool
+pkgver=0.1.1
+pkgrel=1
+pkgdesc="A tool to flash and erase nRF devices"
+arch=('any')
+url="https://github.com/pauloborges/nrftool"
+license=('MIT')
+depends=('python2')
+options=(!emptydirs)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pauloborges/nrftool/archive/v$pkgver.tar.gz")
+sha256sums=('b23a1bb6a0cb9805b4cdcdc671de8fbe7dae03eaa944f5b7771c73401314f8dd')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ python2 setup.py build
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}