summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dc2e80b34112044d52b71a718adc690d40a4e320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Aaron Schaefer <aaron@elasticdog.com>

pkgname=vim-pastie
pkgver=2.0
_scriptid=10260
pkgrel=9
pkgdesc='A Vim plugin that lets you read and create pastes at http://pastie.org/'
arch=('any')
url='https://www.vim.org/scripts/script.php?script_id=1624'
license=('custom:vim')
depends=('ruby' 'vim')
groups=('vim-plugins')
source=("https://www.vim.org/scripts/download_script.php?src_id=$_scriptid" license.txt)
md5sums=('4ba364a003903ace6fd51ccbe6b86d78' 'cd49910a3dde6fe0a7e24ebe8cbf7066')

package() {
  cd "$srcdir"
  local installpath="$pkgdir/usr/share/vim/vimfiles"

  install -D -m644 "download_script.php?src_id=$_scriptid" "$installpath/plugin/pastie.vim"
  install -D -m644 "license.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}