summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGergely Imreh2015-10-31 19:07:20 +0800
committerGergely Imreh2015-10-31 19:07:20 +0800
commit618465c1d62325fc797106ec6198991e7a6c65d2 (patch)
treef36c45df64aa0d7044fe09122fc29bdb44f0d0ac /PKGBUILD
downloadaur-618465c1d62325fc797106ec6198991e7a6c65d2.tar.gz
Adding new package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 19 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..24f62f7743d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,19 @@
+# Contributor: Gergely Imreh <imrehg gmail com>
+
+pkgname=particle-cli
+pkgdesc='CLI tool for the Particle hardware platform'
+pkgver=1.8.15
+pkgrel=1
+arch=('any')
+url='http://particle.io/'
+license=('GPL')
+depends=('libusb' 'nodejs')
+makedepends=('npm' 'git')
+source=(http://registry.npmjs.org/$pkgname/-/${pkgname}-${pkgver}.tgz)
+noextract=(${pkgname}-${pkgver}.tgz)
+sha256sums=('fbacca2b8a87640bf88f14c999c7a9366f78d7754411ab936029dff556556a0d')
+
+package() {
+ npm install -g --user root --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tgz"
+ rm -r "${pkgdir}/usr/etc"
+}