blob: 515c570260e0a4ccaa30313c93b37693df855568 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Contributor: Gergely Imreh <imrehg gmail com>
pkgname=particle-cli
pkgdesc='CLI tool for the Particle hardware platform'
pkgver=1.14.2
pkgrel=1
arch=('i686' 'x86_64')
url='http://particle.io/'
license=('GPL')
depends=('libusb' 'nodejs')
makedepends=('npm' 'git')
optdepends=('dfu-util: local flashing'
'openssl: local flashing')
source=(http://registry.npmjs.org/$pkgname/-/${pkgname}-${pkgver}.tgz)
noextract=(${pkgname}-${pkgver}.tgz)
sha256sums=('764ab00af51f2de6789490c06d13bc76bc3eaa4d187c8cad2ecf436389cda516')
package() {
npm install -g --user root --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tgz"
rm -r "${pkgdir}/usr/etc"
rm `find "${pkgdir}/" -name '.deps'` -rf
}
|