1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Micha Alt <micha.tucker at gmail dot com>
7 pkgdesc="The streaming build system"
9 url="https://gulpjs.com/"
11 depends=('nodejs' 'semver')
13 source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
14 noextract=($pkgname-$pkgver.tgz)
15 sha512sums=('76f12cdbb48266dda26c5dbdc588269f0c02619c5dc6143ff8b15695b016f32ee3b7af0bffae78d362f3dfe08acb43afe2b3acf8d111983abb62565a0ea5087c')
18 npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
20 mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
21 ln -s "../../../lib/node_modules/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
23 # Non-deterministic race in npm gives 777 permissions to random directories.
24 # See https://github.com/npm/npm/issues/9359 for details.
25 chmod -R u=rwX,go=rX "$pkgdir"
27 # npm installs package.json owned by build user
28 # https://bugs.archlinux.org/task/63396
29 chown -R root:root "$pkgdir"
32 cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules