# Contributor: Łukasz Jendrysik # Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=vim pkgver=8.0.0187 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::noarch" source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz vimrc " builddir="$srcdir/$pkgname-$pkgver" # secfixes: # 8.0.0056-r0: # - CVE-2016-1248 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" depends="diffutils" install -d "$subpkgdir"/usr/bin || return 1 mv "$pkgdir"/usr/bin/vimdiff "$subpkgdir"/usr/bin } md5sums="129e098db4b8746f894323fa3f5a40a9 vim-8.0.0187.tar.gz 97aecde2ab504e543a96bec84b3b5638 vimrc" sha256sums="86f972c5e11871a0de172068f9bbeb117e2aa42fd342034820e74ea6276c3cdd vim-8.0.0187.tar.gz 7ac7e5fd75fe315fd8b3ca4172056ebb9f06df0b5985d3ff88133dfcdd87076b vimrc" sha512sums="69f1f33fdd420397a0e732e9ce5111a48f6aae3bb10ee766fa7c6d8abc95d7175c6a0bdf4a241c3bd7b9fa33dedf7ffcb584bfc8fb79b70d3d7d44197623d45b vim-8.0.0187.tar.gz d9586b777881973cb5e48e18750336a522ed72c3127b2d6b6991e2b943468ca5b694476e7fa39ab469178c1375fc8f52627484e0fe377aea5811a513e35a7b02 vimrc"