# Maintainer: Natanael Copa pkgname=vim pkgver=7.4.861 pkgrel=1 pkgdesc="advanced text editor" url="http://www.vim.org" arch="all" license="custom" depends="" makedepends="ncurses-dev lua5.2-dev" subpackages="$pkgname-doc ${pkgname}diff" source="vim-$pkgver.tar.gz::https://github.com/vim/vim/archive/v$pkgver.tar.gz vimrc " _builddir="$srcdir"/vim-$pkgver prepare() { cd "$_builddir" # Read vimrc from /etc/vim echo '#define SYS_VIMRC_FILE "/etc/vim/vimrc"' >> src/feature.h } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-luainterp \ --without-x \ --disable-nls \ --enable-multibyte \ --enable-gui=no \ --with-lua-prefix=/usr/lua5.2 \ --with-compiledby="Alpine Linux" \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir/" install install -Dm644 runtime/doc/uganda.txt \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1 install -D "$srcdir"/vimrc "$pkgdir"/etc/vim/vimrc || return 1 } vimdiff() { pkgdesc="view file diffs in vim" arch="noarch" depends="diffutils" install -d "$subpkgdir"/usr/bin || return 1 mv "$pkgdir"/usr/bin/vimdiff "$subpkgdir"/usr/bin } md5sums="52288ba525c6e6e09c1a5f85b4c0da87 vim-7.4.861.tar.gz 97aecde2ab504e543a96bec84b3b5638 vimrc" sha256sums="fc24e318073db486bf99204eca8cdfd71174810c327c42cc20aad941858d1636 vim-7.4.861.tar.gz 7ac7e5fd75fe315fd8b3ca4172056ebb9f06df0b5985d3ff88133dfcdd87076b vimrc" sha512sums="41bc463e9a02dc808d09359d673846506077f5ca604978d467a2b15c7419f1b28dcf023aacc6ea2efd581451b01fcc747ace97be336e4d68c2af97340dda74a7 vim-7.4.861.tar.gz d9586b777881973cb5e48e18750336a522ed72c3127b2d6b6991e2b943468ca5b694476e7fa39ab469178c1375fc8f52627484e0fe377aea5811a513e35a7b02 vimrc"