desktop/nodejs-emojione/PKGBUILD
2018-01-09 03:28:40 +00:00

27 lines
828 B
Bash

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