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
2015-08-23 22:22:18 +02:00
pkgver=3.3.9
2015-07-16 03:23:55 +02:00
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)
2015-08-23 22:22:18 +02:00
sha256sums=('d0351fd10618317d2117cce9d1e1dab7600426ed6f163b45039f0ad592f3588f')
2015-07-16 03:23:55 +02:00
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
}