summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gentilucci2019-05-26 10:55:15 -0600
committerAlex Gentilucci2019-05-26 10:55:15 -0600
commitb1d8be0ef25ce44ff9dcf9b021d5c4d034ed2718 (patch)
treee74907466a10446829413972e4657286daea6e5a
parent60c8267278f85b6c13f5599d2d312e7bc392a1e5 (diff)
downloadaur-b1d8be0ef25ce44ff9dcf9b021d5c4d034ed2718.tar.gz
Removed socket.io hack and updated checksums
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD23
-rw-r--r--pin-socket-io-version-at-0.9.patch10
3 files changed, 7 insertions, 32 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 105326e4fc2..a0127733c14 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = vim-instant-markdown
pkgdesc = Instant Markdown previews from vim in a browser
pkgver = 0.1.0
- pkgrel = 5
+ pkgrel = 6
url = https://github.com/suan/vim-instant-markdown#readme
install = install.sh
arch = any
@@ -14,10 +14,8 @@ pkgbase = vim-instant-markdown
noextract = instant-markdown-d-0.1.0.tgz
source = http://registry.npmjs.org/instant-markdown-d/-/instant-markdown-d-0.1.0.tgz
source = https://raw.githubusercontent.com/suan/vim-instant-markdown/master/after/ftplugin/markdown/instant-markdown.vim
- source = pin-socket-io-version-at-0.9.patch
sha256sums = 457cda23129183b01a97e96de9e598680fa0cee6c7c9a40db0f830cd7031fa81
- sha256sums = 2dc1f0e3af2e9641b554f7ed1d32457918542e95f601d552202b362b1779c2d0
- sha256sums = fa1b8c4eb75f80803e3adb027d53616d027c5ee1b45920ff592b08ebcf225dda
+ sha256sums = f0d1698ff135649c5c9061896f194bbdaebe1701cfc81635ebc75b06bfc68228
pkgname = vim-instant-markdown
diff --git a/PKGBUILD b/PKGBUILD
index b0140a57880..e5e1ffd10cd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ _npmname=instant-markdown-d
_npmver=0.1.0
pkgname=vim-instant-markdown
pkgver=0.1.0
-pkgrel=5
+pkgrel=6
pkgdesc="Instant Markdown previews from vim in a browser"
arch=(any)
license=(unknown)
@@ -12,12 +12,10 @@ 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")
+ "https://raw.githubusercontent.com/suan/vim-instant-markdown/master/after/ftplugin/markdown/instant-markdown.vim")
noextract=($_npmname-$_npmver.tgz)
sha256sums=('457cda23129183b01a97e96de9e598680fa0cee6c7c9a40db0f830cd7031fa81'
- '2dc1f0e3af2e9641b554f7ed1d32457918542e95f601d552202b362b1779c2d0'
- 'fa1b8c4eb75f80803e3adb027d53616d027c5ee1b45920ff592b08ebcf225dda')
+ 'f0d1698ff135649c5c9061896f194bbdaebe1701cfc81635ebc75b06bfc68228')
install=install.sh
package() {
@@ -25,19 +23,8 @@ package() {
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"
+ 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"
}
diff --git a/pin-socket-io-version-at-0.9.patch b/pin-socket-io-version-at-0.9.patch
deleted file mode 100644
index c041ca5e8e8..00000000000
--- a/pin-socket-io-version-at-0.9.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- 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"
- }
- }