Package Details: vim-instant-markdown 0.1.0-5

Git Clone URL: https://aur.archlinux.org/vim-instant-markdown.git (read-only)
Package Base: vim-instant-markdown
Description: Instant Markdown previews from vim in a browser
Upstream URL: https://github.com/suan/vim-instant-markdown#readme
Keywords: ftplugin markdown vim
Licenses: unknown
Submitter: tmplt
Maintainer: nytpu
Last Packager: nytpu
Votes: 9
Popularity: 0.873603
First Submitted: 2016-03-04 14:52
Last Updated: 2019-04-18 17:56

Latest Comments

cameel commented on 2019-04-19 07:36

Great, thanks.

By the way, the project has new maintainers now (Future of instant-markdown-d and vim-instant-markdown? #540) so hopefully this patch won't be necessary for long.

nytpu commented on 2019-04-18 18:00

cameel I've added your changes to the PKGBUILD and the patch file. It seems to install fine with your changes.

cameel commented on 2019-03-25 00:24

instant-markdown-d installed by this package crashes for me with the following error message:

Option log level is not valid. Please refer to the README.

This seems to be an upstream bug. Patching it to use an older version of socket.io (as suggested in Fails on OS X #13) fixes the problem.

Here is an updated PKGBUILD if anyone is interested. I have also tweaked it to actually install instant-markdown-d from the tarball it downloads - it was just ignoring the tarball and redownloading it with npm.

PKGBUILD
# Maintainer: Tmplt <tmplt[at]dragons[dot]rocks>

_npmname=instant-markdown-d
_npmver=0.1.0
pkgname=vim-instant-markdown
pkgver=0.1.0
pkgrel=5
pkgdesc="Instant Markdown previews from vim in a browser"
arch=(any)
license=(unknown)
url="https://github.com/suan/vim-instant-markdown#readme"
depends=('nodejs' 'npm' 'wget')
optdepends=('neovim: neovim support' 'vim: vim support')
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz
        https://raw.githubusercontent.com/suan/vim-instant-markdown/master/after/ftplugin/markdown/instant-markdown.vim
        pin-socket-io-version-at-0.9.patch)
noextract=($_npmname-$_npmver.tgz)
sha256sums=('457cda23129183b01a97e96de9e598680fa0cee6c7c9a40db0f830cd7031fa81'
            '2dc1f0e3af2e9641b554f7ed1d32457918542e95f601d552202b362b1779c2d0'
            '2436f68340f7463efc8bbc3987a9344ebab2d8cb0bca1e3b690b64e2694f0060')
install=install.sh

package() {
  mkdir -p "$pkgdir/usr/lib/node_modules/"
  mkdir -p "$pkgdir/usr/share/vim/vimfiles/autoload/"
  mkdir -p "$pkgdir/usr/share/vim/vimfiles/after/ftplugin/markdown"

  cd "$srcdir"
  tar --extract --file "$_npmname-$_npmver.tgz"
  patch "package/package.json" "pin-socket-io-version-at-0.9.patch"
  tar --create --file "$_npmname-$_npmver-patched.tar" package/

  npm install                    \
    --global                     \
    --no-save                    \
    --production                 \
    --user   root                \
    --cache  "$srcdir/npm-cache" \
    --prefix "$pkgdir/usr"       \
    "$_npmname-$_npmver-patched.tar"

  cp "$srcdir/instant-markdown.vim" "$pkgdir/usr/share/vim/vimfiles/after/ftplugin/markdown"
}

# vim: set ts=2 sw=2
pin-socket-io-version-at-0.9.patch
--- package.json    2015-01-18 04:14:05.000000000 +0100
+++ package.json    2019-03-24 20:27:57.818719661 +0100
@@ -13,6 +13,6 @@
     "highlight.js": "^8.4.0",
     "markdown-it": "^3.0.3",
     "send": "~0.1.0",
-    "socket.io": ""
+    "socket.io": "~0.9"
   }
 }

tmplt commented on 2018-11-12 21:41

vim has been made optional.

Please note that I don't use this package anymore; feel free to contact me if you wish to maintain it. I will eventually disown it.

orestisf commented on 2018-11-08 11:55

Can you also make vim an optional dependency? So that we can use it with neovim without having vim installed.

tmplt commented on 2016-12-26 16:33

The sha256sums are now updated. Thanks, sadid.

sadid commented on 2016-12-23 15:43

# Maintainer: Tmplt <ttemplate[at]gmail[dot]com>

_npmname=instant-markdown-d
_npmver=0.1.0
pkgname=vim-instant-markdown
pkgver=0.1.0
pkgrel=2
pkgdesc="Instant Markdown previews from vim in a browser"
arch=(any)
license=(unknown)
url="https://github.com/suan/vim-instant-markdown#readme"
depends=('nodejs' 'npm' 'wget' 'vim')
optdepends=('neovim: neovim support')
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz
https://raw.githubusercontent.com/suan/vim-instant-markdown/master/after/ftplugin/markdown/instant-markdown.vim)
noextract=($_npmname-$_npmver.tgz)
sha256sums=('457cda23129183b01a97e96de9e598680fa0cee6c7c9a40db0f830cd7031fa81'
'2dc1f0e3af2e9641b554f7ed1d32457918542e95f601d552202b362b1779c2d0')
install=install.sh

package() {
mkdir -p "$pkgdir/usr/lib/node_modules/"
mkdir -p "$pkgdir/usr/share/vim/vimfiles/autoload/"
mkdir -p "$pkgdir/usr/share/vim/vimfiles/after/ftplugin/markdown"

cd "$pkgdir/usr/lib/node_modules/"
npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver

cp "$srcdir/instant-markdown.vim" "$pkgdir/usr/share/vim/vimfiles/after/ftplugin/markdown"
}

# vim: set ts=2 sw=2

sadid commented on 2016-12-23 15:40

==> Making package: vim-instant-markdown 0.1.0-2
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading instant-markdown-d-0.1.0.tgz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7501 100 7501 0 0 1947 0 0:00:03 0:00:03 --:--:-- 1947
-> Downloading instant-markdown.vim...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5290 100 5290 0 0 904 0 0:00:05 0:00:05 --:--:-- 991
==> Validating source files with sha256sums...
instant-markdown-d-0.1.0.tgz ... Passed
instant-markdown.vim ... FAILED
==> ERROR: One or more files did not pass the validity check!

patrick96 commented on 2016-10-18 22:41

The instant-markdown.vim sha256sum has changed and breaks the validity check.