Initial commit

This commit is contained in:
Mario Finelli 2015-07-15 21:23:55 -04:00
commit ac1c965856
3 changed files with 41 additions and 0 deletions

15
.SRCINFO Normal file
View file

@ -0,0 +1,15 @@
pkgbase = nodejs-clean-css
pkgdesc = A fast, efficient, and well tested CSS minifier for node.js.
pkgver = 3.3.6
pkgrel = 1
url = https://github.com/jakubpawlowicz/clean-css
arch = any
license = MIT
depends = nodejs
depends = npm
noextract = clean-css-3.3.6.tgz
source = https://registry.npmjs.org/clean-css/-/clean-css-3.3.6.tgz
sha256sums = 1fab61238099df55cb389a701a9fe2fab1c4a87b32e2d3997af726e40b952eef
pkgname = nodejs-clean-css

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
*
!.gitignore
!PKGBUILD
!.SRCINFO

22
PKGBUILD Normal file
View file

@ -0,0 +1,22 @@
# 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
}