summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 287a1406d7def2c636cab66b27502d001e1351c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Jinyi Xian <kylerky@live.com>
pkgname=vim-slime-git
pkgver=r273.dc8ca22
pkgrel=1
pkgdesc="A vim plugin for REPL."
arch=('i686' 'x86_64')
url="https://github.com/jpalardy/vim-slime"
license=('MIT')
depends=('vim')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/jpalardy/vim-slime.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	install -Dm 644 doc/vim-slime.txt -t "$pkgdir/usr/share/vim/vimfiles/doc/"
	install -Dm 644 plugin/slime.vim  -t "$pkgdir/usr/share/vim/vimfiles/plugin/"
        cp -a autoload ftplugin "$pkgdir/usr/share/vim/vimfiles/"
}