23 lines
677 B
Text
23 lines
677 B
Text
|
# 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
|
||
|
}
|