summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5dcaeabde3552a0ac89815344c29ec64c68ef768 (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
27
28
# Maintainer: Adam S Levy <adam@aslevy.com>
# Contributor: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Aaron Schaefer <aaron@elasticdog.com>

pkgname=vim-rails
pkgver=5.4_25852
pkgrel=2
pkgdesc='ViM plugin for enhanced Ruby on Rails application development'
arch=('any')
url='http://www.vim.org/scripts/script.php?script_id=1567'
license=('custom:vim')
groups=('vim-plugins')
depends=('vim')
options=('!strip')
source=("$pkgname.zip::http://www.vim.org/scripts/download_script.php?src_id=${pkgver#*_}"
        license.txt)
sha256sums=('4c8f47d76bf6ca432b46a73e29f2e47e053d25a30fd2a4b32f769a77f408c462'
            '446c67d93c43addf076fe103a71844c2d875d478f82186436567dd221f2652f3')

package() {
        install -Dm644 license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

        local vimdir="$pkgdir/usr/share/vim/vimfiles"
        install --directory "$vimdir"
        for dir in autoload/ compiler/ doc/ plugin/; do
                cp --recursive "${dir}" "$vimdir/"
        done
}