# Contributor: Łukasz Jendrysik # Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=vim pkgver=8.0.0008 pkgrel=0 pkgdesc="advanced text editor" url="http://www.vim.org" arch="all" license="custom" depends="" makedepends="ncurses-dev lua5.2-dev python3-dev" subpackages="$pkgname-doc ${pkgname}diff" source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz vimrc " _builddir="$srcdir"/$pkgname-$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 \ --enable-python3interp=dynamic \ --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 -Dm644 "$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="04fdd147b0e1844bc1b136d7f98c847f vim-8.0.0008.tar.gz 97aecde2ab504e543a96bec84b3b5638 vimrc" sha256sums="431c2ab31e815088e5a646b2ce98d9b30dbe5ea1cc96ab55f4892732857b260f vim-8.0.0008.tar.gz 7ac7e5fd75fe315fd8b3ca4172056ebb9f06df0b5985d3ff88133dfcdd87076b vimrc" sha512sums="d4ce75ac61752618487fa647e0ab032640c794c1bc1b6524026f01d078a5fcdb0261457443e60dfec28a67b7912ec8a681bff6a947f76af0ccc962e30545374d vim-8.0.0008.tar.gz d9586b777881973cb5e48e18750336a522ed72c3127b2d6b6991e2b943468ca5b694476e7fa39ab469178c1375fc8f52627484e0fe377aea5811a513e35a7b02 vimrc"