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

Felix Yan fyan at archlinux.org
Thu Jun 9 06:51:09 UTC 2016


    Date: Thursday, June 9, 2016 @ 08:51:09
  Author: fyan
Revision: 178874

archrelease: copy trunk to community-testing-any

Added:
  pulp/repos/community-testing-any/
  pulp/repos/community-testing-any/PKGBUILD
    (from rev 178873, pulp/trunk/PKGBUILD)

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

Copied: pulp/repos/community-testing-any/PKGBUILD (from rev 178873, pulp/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2016-06-09 06:51:09 UTC (rev 178874)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Micha Alt <micha.tucker at gmail dot com>
+
+pkgname=pulp
+pkgver=9.0.1
+pkgrel=1
+pkgdesc="A build system for PureScript projects"
+arch=('any')
+url="https://github.com/bodil/pulp"
+license=('LGPL')
+depends=('nodejs' 'browserify' 'uglify-js' 'bower' 'purescript')
+makedepends=('npm')
+source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
+noextract=($pkgname-$pkgver.tgz)
+md5sums=('de74c994ba8ffdfd178cf0fd8b9ff234')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+  rm -r "$pkgdir"/usr/etc
+
+  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 browserify uglify-js; do
+    rm -r $dep;
+    npm link $dep;
+  done
+}



More information about the arch-commits mailing list