[arch-commits] Commit in gulp/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 16:35:39 UTC 2020


    Date: Tuesday, July 7, 2020 @ 16:35:39
  Author: felixonmars
Revision: 659314

archrelease: copy trunk to community-staging-any

Added:
  gulp/repos/community-staging-any/
  gulp/repos/community-staging-any/PKGBUILD
    (from rev 659313, gulp/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: gulp/repos/community-staging-any/PKGBUILD (from rev 659313, gulp/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 16:35:39 UTC (rev 659314)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Micha Alt <micha.tucker at gmail dot com>
+
+pkgname=gulp
+pkgver=4.0.2
+pkgrel=2
+pkgdesc="The streaming build system"
+arch=('any')
+url="https://gulpjs.com/"
+license=('MIT')
+depends=('nodejs' 'semver')
+makedepends=('npm')
+source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('76f12cdbb48266dda26c5dbdc588269f0c02619c5dc6143ff8b15695b016f32ee3b7af0bffae78d362f3dfe08acb43afe2b3acf8d111983abb62565a0ea5087c')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+
+  mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+  ln -s "../../../lib/node_modules/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
+
+  # Fix permissions
+  find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
+
+  # Experimental dedup
+  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
+  for dep in semver; do
+    rm -r $dep;
+  done
+}



More information about the arch-commits mailing list