summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelsl2018-02-06 15:42:34 +0800
committerangelsl2018-02-06 15:47:50 +0800
commitf623827ff9db834ac8d13e8c06b9bbd7dd1881a1 (patch)
tree6f396482976d8dcb0b1d40eb2c96d2e556b73782
downloadaur-f623827ff9db834ac8d13e8c06b9bbd7dd1881a1.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD22
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4833d3f7c6b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Tue Feb 6 07:47:43 UTC 2018
+pkgbase = nodejs-serve
+ pkgdesc = Quick HTTP server
+ pkgver = 6.4.9
+ pkgrel = 1
+ url = https://github.com/zeit/serve
+ arch = any
+ license = MIT
+ makedepends = npm
+ depends = nodejs
+ noextract = serve-6.4.9.tgz
+ source = http://registry.npmjs.org/serve/-/serve-6.4.9.tgz
+ sha512sums = c063ddda081cfefd4f5cbfe0cf73f4a3cfe33eec65c0af593124fc0236416d8cdd54f4c82f7742ace16b310a8c9add26f7a8a65fbd7fbf25c847496430db4084
+
+pkgname = nodejs-serve
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cadb454b95e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+_pkgbase=serve
+pkgname=nodejs-$_pkgbase
+pkgdesc='Quick HTTP server'
+pkgver=6.4.9
+pkgrel=1
+arch=('any')
+url='https://github.com/zeit/serve'
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+source=(http://registry.npmjs.org/$_pkgbase/-/$_pkgbase-$pkgver.tgz)
+noextract=($_pkgbase-$pkgver.tgz)
+sha512sums=('c063ddda081cfefd4f5cbfe0cf73f4a3cfe33eec65c0af593124fc0236416d8cdd54f4c82f7742ace16b310a8c9add26f7a8a65fbd7fbf25c847496430db4084')
+
+package() {
+ npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$_pkgbase-$pkgver.tgz
+ rm -r "$pkgdir"/usr/etc
+
+ # Fix npm derp
+ find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
+}
+