blob: f3cbc95ae9b0ab0fa90375a6b50bf25d813289c1 (
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.3
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=('6d0e00d318d82289166fa39035b26e2c')
sha512sums=('c5434ff9bd825333085117271155cd810a39d5284a8e38df00ed54e1ad00f4acdab618ac8ed1abb2bac35275c996aa2318e0589bfcf6b00abf87419f3ba0d7f0')
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'
}
|