commit ac1c965856539ac80c52a89df36c780e38eb019e Author: Mario Finelli Date: Wed Jul 15 21:23:55 2015 -0400 Initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..ed67688 --- /dev/null +++ b/.SRCINFO @@ -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 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f71c635 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f85c8cb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Mario Finelli + +_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 +}