# Maintainer: Jelle van der Waa <jelle vdwaa nl>
pkgname=vim-gist
pkgver=6.7
pkgrel=1
pkgdesc="vimscript for gist"
arch=('any')
url="http://www.vim.org/scripts/script.php?script_id=2423"
license=('custom')
depends=('vim>=7.0' 'curl')
optdepends=('git: git profile support')
install=vimdoc.install
source=("gist-vim-$pkgver.zip"::'http://www.vim.org/scripts/download_script.php?src_id=17734'
		'license.txt')
md5sums=('212a2d84f7dff5a9fc8b40da62300803'
		'efbd5986e691ce8c876fb86e8f5961ea')

package() {
	for file in $(find -mindepth 2 -type f); do
		install -Dm644 ${srcdir}/${file} ${pkgdir}/usr/share/vim/vimfiles/${file}
	done
	install -Dm644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
}
