[arch-commits] Commit in gulp/repos/community-any (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Apr 21 18:35:45 UTC 2019
Date: Sunday, April 21, 2019 @ 18:35:44
Author: felixonmars
Revision: 452845
Added:
gulp/repos/community-any/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-04-21 18:35:44 UTC (rev 452845)
@@ -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.1
+pkgrel=1
+pkgdesc="The streaming build system"
+arch=('any')
+url="http://gulpjs.com/"
+license=('MIT')
+depends=('nodejs' 'semver')
+makedepends=('npm')
+source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('c8356d56e9f1ac076c93bac857f6fb95548189f3cdd44a9eeb04e3b04486ac570bf8c115cda69e35392952e193529b65a12394fbca099bf94125b80f57eb4c03')
+
+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