blob: fad6e8f946b8f62c8dcca67ebcfa1e904a67cc45 (
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
31
32
33
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dor com>
_npmname=concurrently
_npmalias=conc
pkgname=nodejs-${_npmname}
pkgver=9.1.0
pkgrel=1
pkgdesc="Run multiple commands concurrently"
arch=(any)
url="https://github.com/open-cli-tools/concurrently"
license=('MIT')
provides=("$_npmname" "$_npmalias")
depends=('nodejs')
makedepends=('npm')
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
sha256sums=('a1d84591095b8528ff74e7b47a4e85adc5164a06035b2ada78bdcda8051f441b')
package() {
npm install -g --user root --prefix "$pkgdir/usr" "$srcdir/$_npmname-$pkgver.tgz"
# Drop strange dirs
rm -rf "$pkgdir/usr/lib/node_modules/root"
# Fix permissions
find "$pkgdir/usr" -type d -exec chmod 755 {} \;
# License
install -Dm644 "/usr/lib/node_modules/concurrently/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Readme
install -Dm644 "/usr/lib/node_modules/concurrently/README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|