summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gentilucci2019-05-26 10:59:06 -0600
committerAlex Gentilucci2019-05-26 10:59:06 -0600
commit303899430ca4fb697709ca4d3f60c748f1116e6f (patch)
tree828ae6f89ed15bf61185539721aa2bcac983afc1
parentb1d8be0ef25ce44ff9dcf9b021d5c4d034ed2718 (diff)
downloadaur-303899430ca4fb697709ca4d3f60c748f1116e6f.tar.gz
Fixed accidental typo/overwrite, sorry
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD11
2 files changed, 10 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a0127733c14..73c7882359e 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 = 6
+ pkgrel = 7
url = https://github.com/suan/vim-instant-markdown#readme
install = install.sh
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index e5e1ffd10cd..d0bc6692277 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=6
+pkgrel=7
pkgdesc="Instant Markdown previews from vim in a browser"
arch=(any)
license=(unknown)
@@ -24,7 +24,14 @@ package() {
mkdir -p "$pkgdir/usr/share/vim/vimfiles/after/ftplugin/markdown"
cd "$pkgdir/usr/lib/node_modules/"
- npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+ npm install \
+ --global \
+ --no-save \
+ --production \
+ --user root \
+ --cache "$srcdir/npm-cache" \
+ --prefix "$pkgdir/usr" \
+ "$_npmname-$_npmver.tgz"
cp "$srcdir/instant-markdown.vim" "$pkgdir/usr/share/vim/vimfiles/after/ftplugin/markdown"
}