[arch-commits] Commit in nodejs-emojione/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Aug 30 16:20:43 UTC 2018
Date: Thursday, August 30, 2018 @ 16:20:43
Author: felixonmars
Revision: 375505
archrelease: copy trunk to community-testing-any
Added:
nodejs-emojione/repos/community-testing-any/
nodejs-emojione/repos/community-testing-any/PKGBUILD
(from rev 375504, nodejs-emojione/trunk/PKGBUILD)
----------+
PKGBUILD | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
Copied: nodejs-emojione/repos/community-testing-any/PKGBUILD (from rev 375504, nodejs-emojione/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-08-30 16:20:43 UTC (rev 375505)
@@ -0,0 +1,25 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_npmname=emojione
+pkgname=nodejs-$_npmname
+pkgver=4.0.0
+pkgrel=1
+pkgdesc="A complete set of emojis designed for the web"
+arch=('any')
+url="http://www.emojione.com"
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+source=("https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
+noextract=($_npmname-$pkgver.tgz)
+sha512sums=('013152447acaf37f0da13504f7a8fdae9992d51e1afeaa4ad6669051119d16d6aba5696812db638c804159b485aac5310b4568b7a3f6597992968b6f6687a0c7')
+
+package() {
+ npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$_npmname-$pkgver.tgz
+ 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