desktop/nodejs-emojione/PKGBUILD
2018-04-28 12:53:23 +01:00

27 lines
828 B
Bash

# Contributions from Arch:
# Maintainer: Felix Yan <felixonmars@archlinux.org>
_npmname=emojione
pkgname=nodejs-$_npmname
pkgver=3.1.4
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)
sha256sums=('96819d029b577086ec825bc7f69d0cf3bf1b96746e84f5a5037812f1a8db004c')
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 '{}' +
}