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-01-09 11:28:40 +08:00
pkgver=3.1.2
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-01-09 11:28:40 +08:00
sha256sums=('fcce53b18f79158b143ebac1a9ffa446e789946e8135dba1a791f59ec9cd5d34')
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 '{}' +
}