desktop/nodejs-emojione/PKGBUILD
2017-05-05 00:37:00 +01:00

27 lines
828 B
Bash

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