desktop/nodejs-emojione/PKGBUILD

27 lines
828 B
Bash
Raw Normal View History

2017-03-23 14:08:27 +08:00
# Contributions from Arch:
# Maintainer: Felix Yan <felixonmars@archlinux.org>
_npmname=emojione
pkgname=nodejs-$_npmname
2018-04-28 19:53:23 +08:00
pkgver=3.1.4
2017-03-23 14:08:27 +08:00
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)
2018-04-28 19:53:23 +08:00
sha256sums=('96819d029b577086ec825bc7f69d0cf3bf1b96746e84f5a5037812f1a8db004c')
2017-03-23 14:08:27 +08:00
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 '{}' +
}