[arch-commits] Commit in marked-man/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Aug 12 03:22:48 UTC 2016


    Date: Friday, August 12, 2016 @ 03:22:47
  Author: felixonmars
Revision: 186461

archrelease: copy trunk to community-any

Added:
  marked-man/repos/community-any/
  marked-man/repos/community-any/PKGBUILD
    (from rev 186460, marked-man/trunk/PKGBUILD)

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

Copied: marked-man/repos/community-any/PKGBUILD (from rev 186460, marked-man/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-08-12 03:22:47 UTC (rev 186461)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=marked-man
+pkgver=0.1.5
+pkgrel=1
+pkgdesc="Wrapper adding manpage output to 'marked', inspired by 'ronn'"
+arch=('any')
+url='https://github.com/kapouer/marked-man'
+license=('MIT')
+depends=('nodejs' 'marked')
+makedepends=('npm')
+source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+md5sums=('359173f78e01a80da0c114ac8ebf8d84')
+
+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/marked-man/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  # Experimental dedup
+  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
+  for dep in marked; do
+    rm -r $dep;
+    npm link $dep;
+  done
+}



More information about the arch-commits mailing list