summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d3935aa1d288d0f8dc04e3f8cbd18f72639bda10 (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
29
30
# Maintainer: <https://aur.archlinux.org/user/vorbote
EDT="YES"
pkgname=vim-vi
pkgver=6
pkgrel=1
pkgdesc="Replace heirloom vi from core with (g)vim using symlinks."
arch=('any')
url="https://aur.archlinux.org/packages/vim-vi"
license=('GPL')
if [[ $EDT == "YES" ]]; then
  depends=('gvim')
else 
  depends=('vim')
fi
provides=('vi')
conflicts=('vi')
replaces=('vi')

package() {
  mkdir -p "$pkgdir"/usr/bin
  ln -sf /usr/bin/vim "$pkgdir"/usr/bin/edit
  ln -sf /usr/bin/vim "$pkgdir"/usr/bin/ex
  ln -sf /usr/bin/vim "$pkgdir"/usr/bin/vi
  ln -sf /usr/bin/vim "$pkgdir"/usr/bin/view
  ln -sf /usr/bin/vim "$pkgdir"/usr/bin/redit
  ln -sf /usr/bin/vim "$pkgdir"/usr/bin/rex
  ln -sf /usr/bin/vim "$pkgdir"/usr/bin/rvi
}

# vim: ts=2 sw=2 et :