[arch-commits] Commit in stylus/repos (community-any community-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Fri Oct 23 03:19:13 UTC 2015


    Date: Friday, October 23, 2015 @ 05:19:11
  Author: fyan
Revision: 144764

archrelease: copy trunk to community-any

Added:
  stylus/repos/community-any/
  stylus/repos/community-any/PKGBUILD
    (from rev 144763, stylus/trunk/PKGBUILD)

----------+
 PKGBUILD |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

Copied: stylus/repos/community-any/PKGBUILD (from rev 144763, stylus/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-10-23 03:19:11 UTC (rev 144764)
@@ -0,0 +1,22 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=stylus
+pkgdesc='Robust, expressive, and feature-rich CSS superset'
+pkgver=0.52.4
+pkgrel=1
+arch=('any')
+url='https://github.com/stylus/stylus'
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm' 'git')
+source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+sha256sums=('5735ac9ff8a6943643ea4d044e2cff6016b43639154fd64f07cb7d1e5c681416')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+  rm -r "$pkgdir"/usr/etc
+  mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+  ln -s "../../../lib/node_modules/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
+}



More information about the arch-commits mailing list