blob: 96752fd18061972a40f5fc594fbf372eeb684f65 (
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
59
60
61
62
63
64
65
66
67
68
69
70
|
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vim
pkgver=8.1.0026
pkgrel=0
pkgdesc="Improved vi-style text editor"
url="http://www.vim.org"
arch="all"
license="Vim"
options="!check" # no tests available
makedepends="ncurses-dev lua5.3-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.1521-r0:
# - CVE-2017-6350
# - CVE-2017-6349
# 8.0.0329-r0:
# - CVE-2017-5953
# 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.3 \
--with-compiledby="Alpine Linux"
make
}
package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir/" install
install -Dm644 runtime/doc/uganda.txt \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "$srcdir"/vimrc "$pkgdir"/etc/vim/vimrc
}
vimdiff() {
pkgdesc="view file diffs in vim"
depends="diffutils"
install -d "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/vimdiff "$subpkgdir"/usr/bin
}
sha512sums="ccab835923065409910ec2df985d03de1e323bf5c3819365c4215c2f6c0d0eeacd6f47a8bb4d99c7b3deca11e49268f7c6f99b731a1e3f6c88d35141f684995c vim-8.1.0026.tar.gz
d9586b777881973cb5e48e18750336a522ed72c3127b2d6b6991e2b943468ca5b694476e7fa39ab469178c1375fc8f52627484e0fe377aea5811a513e35a7b02 vimrc"
|