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

Felix Yan felixonmars at archlinux.org
Sat Aug 6 03:17:28 UTC 2016


    Date: Saturday, August 6, 2016 @ 03:17:28
  Author: felixonmars
Revision: 185443

archrelease: copy trunk to community-any

Added:
  nodejs-emojione/repos/community-any/
  nodejs-emojione/repos/community-any/PKGBUILD
    (from rev 185442, nodejs-emojione/trunk/PKGBUILD)

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

Copied: nodejs-emojione/repos/community-any/PKGBUILD (from rev 185442, nodejs-emojione/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-08-06 03:17:28 UTC (rev 185443)
@@ -0,0 +1,26 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_npmname=emojione
+pkgname=nodejs-$_npmname
+pkgver=2.2.6
+pkgrel=1
+pkgdesc="A complete set of emojis designed for the web"
+arch=('any')
+url="http://www.emojione.com"
+license=('MIT')
+depends=('nodejs' 'semver')
+makedepends=('npm')
+source=("https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
+noextract=($_npmname-$pkgver.tgz)
+sha256sums=('78bbab3ad12a8cdcea06a9699d5ad82dc79a7bf107fb11089b4b2295883aa757')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$_npmname-$pkgver.tgz
+  rm -r "$pkgdir"/usr/etc
+  mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+  ln -s "../../../lib/node_modules/$_npmname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/"
+
+  # Fix permissions
+  find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
+}



More information about the arch-commits mailing list