blob: 652d3d02de5d38c78a97378a3a67d6ee071f79f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: Sebastian Stammler <base64 -d<<<aWFtQGRlY2VudHIuYWwK>
# Co-Maintainer: Benjamin Schäfer <b-schaefer at posteo dot de>
_npmname=gitmoji-cli
pkgname=nodejs-${_npmname}
pkgver=3.2.4
pkgrel=1
pkgdesc='A gitmoji interactive client for using gitmojis on commit messages'
arch=('any')
url='https://gitmoji.carloscuesta.me/'
license=('MIT')
depends=('nodejs')
makedepends=('nodejs' 'npm')
optdepends=('noto-fonts-emoji: emojis'
'ttf-symbola: emojis'
'ttf-joypixels: emojis'
'ttf-twemoji-color: emojis')
source=("https://registry.npmjs.org/${_npmname}/-/${_npmname}-${pkgver}.tgz")
md5sums=('40d6b851cbfa447334d68123bd6c87ed')
sha512sums=('adfd0d6f06686d6d8ac30a267f8d4ea1ab3bae6ef2835cfaf1fc8a82b29a52cfd569a36dc0860ca7f275d62431705bb9a7a8bbde1b82cadce69a8ffcbf8bac0c')
noextract=("${source[@]##*/}")
package() {
npm install -g --prefix "${pkgdir}/usr" "${source[@]##*/}"
# Non-deterministic race in npm gives 777 permissions to random directories.
# See https://github.com/npm/npm/issues/9359 for details.
find "${pkgdir}"/usr -type d -exec chmod 755 {} +
# Remove references to $pkgdir in _where attributes
find "${pkgdir}" -name package.json -print0 | xargs -0 sed -i -e '/_where/d'
}
|