archlinux-pkgbuilds/PKGBUILD

23 lines
677 B
Text
Raw Normal View History

2015-07-16 03:23:55 +02:00
# Maintainer: Mario Finelli <mario dot finelli at yahoo dot com>
_npmname=clean-css
pkgname=nodejs-$_npmname
pkgver=3.3.6
pkgrel=1
pkgdesc="A fast, efficient, and well tested CSS minifier for node.js."
arch=('any')
url="https://github.com/jakubpawlowicz/clean-css"
license=('MIT')
depends=('nodejs' 'npm')
source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
sha256sums=('1fab61238099df55cb389a701a9fe2fab1c4a87b32e2d3997af726e40b952eef')
package() {
cd "$srcdir"
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p "$_npmdir"
cd "$_npmdir"
npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver
}