# Contributor: Łukasz Jendrysik # Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=vim pkgver=8.0.0003 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="9ea2757c8bdb7cb419ad8c50d1739cc1 vim-8.0.0003.tar.gz 97aecde2ab504e543a96bec84b3b5638 vimrc" sha256sums="725d8bfafe9a415c36de2230644ddcff56f83b73d3ad236727ccff793b4b5b5c vim-8.0.0003.tar.gz 7ac7e5fd75fe315fd8b3ca4172056ebb9f06df0b5985d3ff88133dfcdd87076b vimrc" sha512sums="7720dff00156aa271fb99c4153bb22d427f0cf6dd868becb373503bdf08ccdbc0a44e8b583ed8fd7a759c00f9c3f59d9e6ac7667bbc3a204b581cbf79bb94beb vim-8.0.0003.tar.gz d9586b777881973cb5e48e18750336a522ed72c3127b2d6b6991e2b943468ca5b694476e7fa39ab469178c1375fc8f52627484e0fe377aea5811a513e35a7b02 vimrc"