summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMario Finelli2015-09-07 14:28:08 -0400
committerMario Finelli2015-09-07 14:28:08 -0400
commit15a396ab01b990dc0f469c0b73a8198c5e9a04da (patch)
treec26025fc7c41108fa060e515c783aab4c5698e2a /PKGBUILD
downloadaur-15a396ab01b990dc0f469c0b73a8198c5e9a04da.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d8752343181
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Mario Finelli <mario dot finelli at yahoo dot com>
+
+_npmname=postcss-cli
+pkgname=nodejs-$_npmname
+pkgver=2.1.0
+pkgrel=1
+pkgdesc="Traditional CLI for postcss."
+arch=('any')
+url="https://github.com/code42day/postcss-cli"
+license=('MIT')
+depends=('nodejs' 'npm')
+source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
+noextract=($_npmname-$pkgver.tgz)
+sha256sums=('1faa05e7ede18d4611602d973202899238f5ab1cbe5c3f00249b72d98e6af2c2')
+
+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
+}