summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb4d0f6f42e432c9de51e04150432fe7fabd0eb8 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: Mikhail Burakov <mikhail.burakov gmail com>

pkgname=vim-nox
pkgver=master
pkgrel=0
arch=('i686' 'x86_64')
license=('custom:vim')
url='http://www.vim.org'
depends=('gpm')
makedepends=('python2')
provides=('vim')
conflicts=('vim' 'vim-runtime')
pkgdesc='Vi Improved, console-only build with python2 support. Latest version from git.'
source=("git://github.com/vim/vim")
md5sums=('SKIP')

build() {
  cd "${srcdir}/vim/src"
  autoconf
  ./configure \
    --prefix=/usr \
    --localstatedir=/var/lib/vim \
    --with-features=huge \
    --with-compiledby='Mikhail Burakov' \
    --enable-gpm \
    --enable-acl \
    --with-x \
    --disable-gui \
    --enable-multibyte \
    --enable-cscope \
    --disable-netbeans \
    --enable-perlinterp \
    --enable-pythoninterp \
    --disable-python3interp \
    --disable-rubyinterp \
    --disable-luainterp
  make
}

package() {
  cd "${srcdir}/vim"
  make -j1 DESTDIR="${pkgdir}" install

  # provided by (n)vi in core
  rm "${pkgdir}"/usr/bin/{ex,view}

  # delete some manpages
  find "${pkgdir}"/usr/share/man -type d -name 'man1' 2>/dev/null | \
    while read _mandir; do
    cd ${_mandir}
    rm -f ex.1 view.1 # provided by (n)vi
    rm -f evim.1    # this does not make sense if we have no GUI
  done

  # license
  install -Dm644 "${srcdir}/vim/runtime/doc/uganda.txt" \
    "${pkgdir}/usr/share/licenses/vim/license.txt"
}