summaryrefslogtreecommitdiff
path: root/pcr/nodejs-semver-utils
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-02-04 19:53:01 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-02-04 19:54:15 +0100
commit9d57d8a2b34f00031d91a1f68c49245acda58274 (patch)
treee9afd433db1c71686fef72e64a92e16a6b752771 /pcr/nodejs-semver-utils
parenta62517453d40836914dd8acf3efc1aad4d7bdd93 (diff)
downloadabslibre-9d57d8a2b34f00031d91a1f68c49245acda58274.tar.gz
abslibre-9d57d8a2b34f00031d91a1f68c49245acda58274.tar.bz2
abslibre-9d57d8a2b34f00031d91a1f68c49245acda58274.zip
pcr/nodejs-semver-utils: added
Diffstat (limited to 'pcr/nodejs-semver-utils')
-rw-r--r--pcr/nodejs-semver-utils/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/pcr/nodejs-semver-utils/PKGBUILD b/pcr/nodejs-semver-utils/PKGBUILD
new file mode 100644
index 000000000..a37d3f8b7
--- /dev/null
+++ b/pcr/nodejs-semver-utils/PKGBUILD
@@ -0,0 +1,27 @@
+
+# parabola changes and rationale:
+# - using a common nodejs packaging scheme
+
+_npmname=semver-utils
+pkgname=nodejs-$_npmname
+pkgver=1.1.1
+pkgrel=1
+pkgdesc="Some utils that aren't provided by the mainstream semver module."
+arch=('any')
+url='https://www.npmjs.com/package/semver-utils'
+license=('Apache')
+depends=('nodejs')
+makedepends=('npm')
+source=("http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
+noextract=($_npmname-$pkgver.tgz)
+sha256sums=('cc692db6dcbbecd67ba8ce805cd1e6ac15e1858ded4c3149bcc926166132bfd2')
+
+package() {
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p "$_npmdir"
+ cd "$_npmdir"
+ npm install --verbose --debug -g --user root --prefix "$pkgdir/usr" \
+ "$srcdir"/$_npmname-$pkgver.tgz
+ rm -r "$pkgdir/usr/etc"
+}
+