upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / gulp / trunk / PKGBUILD
blob0eb20309e1d6a2c3435e494e04b6b73b523f08a3
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Micha Alt <micha.tucker at gmail dot com>
4 pkgname=gulp
5 pkgver=4.0.2
6 pkgrel=3
7 pkgdesc="The streaming build system"
8 arch=('any')
9 url="https://gulpjs.com/"
10 license=('MIT')
11 depends=('nodejs' 'semver')
12 makedepends=('npm')
13 source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
14 noextract=($pkgname-$pkgver.tgz)
15 sha512sums=('76f12cdbb48266dda26c5dbdc588269f0c02619c5dc6143ff8b15695b016f32ee3b7af0bffae78d362f3dfe08acb43afe2b3acf8d111983abb62565a0ea5087c')
17 package() {
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"
31   # Experimental dedup
32   cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
33   for dep in semver; do
34     rm -r $dep;
35   done