[arch-commits] Commit in (semver semver/repos semver/trunk semver/trunk/PKGBUILD)

Felix Yan fyan at archlinux.org
Sun Feb 14 03:07:34 UTC 2016


    Date: Sunday, February 14, 2016 @ 04:07:34
  Author: fyan
Revision: 161506

addpkg: semver 5.1.0-1

Added:
  semver/
  semver/repos/
  semver/trunk/
  semver/trunk/PKGBUILD

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

Added: semver/trunk/PKGBUILD
===================================================================
--- semver/trunk/PKGBUILD	                        (rev 0)
+++ semver/trunk/PKGBUILD	2016-02-14 03:07:34 UTC (rev 161506)
@@ -0,0 +1,23 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=semver
+pkgver=5.1.0
+pkgrel=1
+pkgdesc='The semantic version parser used by npm.'
+arch=('any')
+url='https://github.com/npm/node-semver'
+license=('ISC')
+depends=('nodejs')
+makedepends=('npm')
+source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+md5sums=('45488e5d3a4008fee2dda2eaf002392c')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+  rm -r "$pkgdir"/usr/etc
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname
+  ln -s ../../../lib/node_modules/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


Property changes on: semver/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list