mirror of
https://github.com/TrentSPalmer/aur-packages.git
synced 2024-12-22 20:42:48 -08:00
26 lines
1.2 KiB
Bash
26 lines
1.2 KiB
Bash
# Maintainer: John D Jones III jnbek1972 __AT__ $mailservice_by_google __DOT__ com
|
|
_npmname=tern
|
|
_npmver=0.24.1
|
|
pkgname=nodejs-tern # All lowercase
|
|
pkgver=0.24.1
|
|
pkgrel=1
|
|
pkgdesc="A JavaScript code analyzer for deep, cross-editor language support"
|
|
arch=(any)
|
|
url='http://ternjs.net/'
|
|
license=('MIT')
|
|
depends=('nodejs' 'npm')
|
|
optdepends=()
|
|
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
|
|
noextract=($_npmname-$_npmver.tgz)
|
|
sha512sums=('ea32b40dc833899d0d022b59367720f9da3f7ca1a1f214094a171553b747a0096375c92beeaaf6a28cdde25e244c803b33ed05a0a5f2ea0bd104b3bca16a5313')
|
|
|
|
package() {
|
|
cd "$srcdir"
|
|
local _npmdir="$pkgdir/usr/lib/node_modules/"
|
|
mkdir -p "$_npmdir"
|
|
cd "$_npmdir"
|
|
npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$_npmver
|
|
}
|
|
|
|
|