Last active
March 25, 2016 09:02
-
-
Save svalo/e847e5a8d60a5ac9cd54 to your computer and use it in GitHub Desktop.
Updated pkgbuild for nodejs-how2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Morten Linderud <morten@linderud.pw> | |
_npmname=how2 | |
pkgname=nodejs-how2 | |
pkgver=1.1.0 | |
pkgrel=1 | |
pkgdesc="how2 finds the simplest way to do something in a unix shell. It's like man, but you can query it in natural language:" | |
arch=(any) | |
url="https://github.com/santinic/how2" | |
license=(MIT) | |
depends=('nodejs' 'npm') | |
optdepends=() | |
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz) | |
noextract=($_npmname-$pkgver.tgz) | |
sha256sums=('96adf72bfa307c5413314afb547179e781f9ef18db6c7233b104da399657478e') | |
package() { | |
cd "$srcdir" | |
local _npmdir="$pkgdir/usr/lib/node_modules/" | |
mkdir -p "$_npmdir" | |
cd "$_npmdir" | |
npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment