blob: 3b4ce34c7c27456b58e3546cf98267caab503288 (
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
|
# Maintainer: Nissar Chababy <funilrys at outlook dot com>
_npmname=asciicast2gif
_npmver=0.2.1
pkgname=nodejs-asciicast2gif
pkgver=0.2.1
pkgrel=1
pkgdesc="Generate GIF animations from asciicasts (asciinema recordings)"
arch=(any)
url="https://github.com/asciinema/asciicast2gif"
license=(MIT)
depends=('nodejs' 'npm' 'gifsicle')
optdepends=()
source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
noextract=($_npmname-$_npmver.tgz)
sha1sums=(2b0b8c2acde3ecc1b32f4f5321be859ebede82c0)
package() {
cd $srcdir
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p $_npmdir
cd $_npmdir
npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
}
|