summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 359b8ee2230f2e2839d2ecceb564cac9bd839396 (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
# Maintainer:  Chris Severance aur.severach aATt spamgourmet dott com
# PKGBUILD file for link-vim-to-vi.
# Contributor: Patrick Goetz <pgoetz@linuxcs.com>

pkgname='vi-vim-symlink'
pkgver='1'
pkgrel='2'
pkgdesc='Replace vi with vim'
arch=('any')
url='http://www.vim.org'
license=('CDDL')
depends=('vim')
provides=('vi')
conflicts=('vi')

package() {
  set -u
  install -d "${pkgdir}/usr/bin"
  install -d "${pkgdir}/usr/share/man/man1"
  local _file
  for _file in 'edit' 'ex' 'vedit' 'vi' 'view'; do
    ln -sf 'vim' "${pkgdir}/usr/bin/${_file}"
    ln -sf 'vim.1.gz' "${pkgdir}/usr/share/man/man1/${_file}.1.gz"
  done
  set +u
}