[arch-commits] Commit in nodejs-emojione/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 15:58:57 UTC 2020
Date: Tuesday, July 7, 2020 @ 15:58:57
Author: felixonmars
Revision: 659057
archrelease: copy trunk to community-staging-any
Added:
nodejs-emojione/repos/community-staging-any/
nodejs-emojione/repos/community-staging-any/PKGBUILD
(from rev 659056, nodejs-emojione/trunk/PKGBUILD)
----------+
PKGBUILD | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
Copied: nodejs-emojione/repos/community-staging-any/PKGBUILD (from rev 659056, nodejs-emojione/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-07-07 15:58:57 UTC (rev 659057)
@@ -0,0 +1,24 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_npmname=emojione
+pkgname=nodejs-$_npmname
+pkgver=4.5.0
+pkgrel=2
+pkgdesc="A complete set of emojis designed for the web"
+arch=('any')
+url="https://www.emojione.com"
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+source=("https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
+noextract=($_npmname-$pkgver.tgz)
+sha512sums=('4eae796375203ce9dac850cdf9077a40c3f4ae9a07d746b59e1485376eecf205d6deaca6805207897cacd84098600235df805a7e6237a8ff678b6ad939ef418c')
+
+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