summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gentilucci2019-07-24 08:32:29 -0600
committerAlex Gentilucci2019-07-24 08:32:29 -0600
commitcd97546ffc28ce324dba26b9eb028740051335b9 (patch)
tree679e99ebf12d88ff21c1fff1dde431bc34b344b4
parent068d9413d8b1141774384024766aae87536cf906 (diff)
downloadaur-vim-instant-markdown.tar.gz
Pinned "vim-instant-markdown" version at 0.1.0 release
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD20
2 files changed, 14 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 37826d6e869..67a48c3a5f2 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.1
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/suan/vim-instant-markdown#readme
install = install.sh
arch = any
@@ -12,11 +12,11 @@ pkgbase = vim-instant-markdown
depends = wget
optdepends = neovim: neovim support
optdepends = vim: vim support
- noextract = 0.1.1.tar.gz
+ noextract = 0.1.0.tar.gz
source = https://github.com/suan/instant-markdown-d/archive/0.1.1.tar.gz
- source = https://raw.githubusercontent.com/suan/vim-instant-markdown/master/after/ftplugin/markdown/instant-markdown.vim
+ source = https://github.com/suan/vim-instant-markdown/archive/v0.1.0.tar.gz
sha256sums = 806281d2499e1fe01d3827d75cc196c269fd65c6fe7313e99e0d0c3e70657c22
- sha256sums = 2db6b9c65310b0b3b38f6ebcaf66e94764886ed8dd2098a464f1688630c63a2c
+ sha256sums = 7a3678f002e6f9760312ff82101dfd10d930251aad9b3fee53c76c2ca16a31c9
pkgname = vim-instant-markdown
diff --git a/PKGBUILD b/PKGBUILD
index 89673b47117..256e671b70d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
# Maintainer: Alex Gentilucci <alexander.gentilucci@gmail.com>
_npmname=instant-markdown-d
-_npmver=0.1.1
+_npmver=0.1.0
pkgname=vim-instant-markdown
pkgver=0.1.1
-pkgrel=3
+pkgrel=4
pkgdesc="Instant Markdown previews from vim in a browser"
arch=(any)
license=(unknown)
@@ -12,11 +12,11 @@ url="https://github.com/suan/vim-instant-markdown#readme"
depends=('nodejs' 'npm' 'wget')
makedepends=('jq')
optdepends=('neovim: neovim support' 'vim: vim support')
-source=("https://github.com/suan/$_npmname/archive/$_npmver.tar.gz"
- "https://raw.githubusercontent.com/suan/vim-instant-markdown/master/after/ftplugin/markdown/instant-markdown.vim")
+source=("https://github.com/suan/$_npmname/archive/$pkgver.tar.gz"
+ "https://github.com/suan/$pkgname/archive/v$_npmver.tar.gz")
noextract=($_npmver.tar.gz)
sha256sums=('806281d2499e1fe01d3827d75cc196c269fd65c6fe7313e99e0d0c3e70657c22'
- '2db6b9c65310b0b3b38f6ebcaf66e94764886ed8dd2098a464f1688630c63a2c')
+ '7a3678f002e6f9760312ff82101dfd10d930251aad9b3fee53c76c2ca16a31c9')
install=install.sh
package() {
@@ -25,14 +25,14 @@ package() {
mkdir -p "$pkgdir/usr/share/vim/vimfiles/after/ftplugin/markdown"
cd "$srcdir"
- npm install \
- --global \
+ npm install \
+ --global \
--no-save \
--production \
--user root \
--cache "$srcdir/npm-cache" \
--prefix "$pkgdir/usr" \
- "$_npmver.tar.gz"
+ "$pkgver.tar.gz"
find "$pkgdir/usr" -type d -exec chmod 755 {} +
@@ -44,9 +44,9 @@ package() {
local pkgjson="$pkgdir/usr/lib/node_modules/$_npmname/package.json"
jq '.|=with_entries(select(.key|test("_.+")|not))' "$pkgjson" > "$tmppackage"
mv "$tmppackage" "$pkgjson"
- chmod 644 "$pkgjson"
+ chmod 644 "$pkgjson"
- cp "$srcdir/instant-markdown.vim" "$pkgdir/usr/share/vim/vimfiles/after/ftplugin/markdown"
+ cp "$srcdir/$pkgname-$_npmver/after/ftplugin/markdown/instant-markdown.vim" "$pkgdir/usr/share/vim/vimfiles/after/ftplugin/markdown"
}
# vim: set ts=2 sw=2