Date: Wednesday, November 28, 2018 @ 21:41:53
  Author: heftig
Revision: 410478

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   59 ++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 32 insertions(+), 27 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2018-11-28 21:41:40 UTC (rev 410477)
+++ PKGBUILD    2018-11-28 21:41:53 UTC (rev 410478)
@@ -1,27 +0,0 @@
-# Maintainer: Felix Yan <felixonm...@archlinux.org>
-
-pkgname=marked-man
-pkgver=0.2.1
-pkgrel=2
-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=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
-noextract=($pkgname-$pkgver.tgz)
-sha512sums=('e2d55fd1b3a65f9e285d2d3b08d7cea39f6e82d2e08b3d45976828b217e6698e280c56acdc3ba941d627487d188865fdef5c5840bf875368a32164a6152611e2')
-
-package() {
-  npm install -g --user root --prefix "$pkgdir"/usr 
"$srcdir"/$pkgname-$pkgver.tgz
-  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
-}

Copied: marked-man/repos/community-any/PKGBUILD (from rev 410477, 
marked-man/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2018-11-28 21:41:53 UTC (rev 410478)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgname=marked-man
+pkgver=0.3.0+2+gceb2249
+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' 'git')
+_commit=ceb224979cfff8d87d1dabd7dcecffd8cdd26303  # master
+source=("git+https://github.com/kapouer/marked-man#commit=$_commit";)
+sha512sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr 
"git+file://$srcdir/$pkgname"
+  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
+}

Reply via email to