blob: b0735ca15fbf157acd7c63ce65533d9a4b988519 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vim
pkgver=7.4
_srcver=${pkgver%.*}
_patchver=${pkgver##*.}
pkgrel=1
pkgdesc="advanced text editor"
url="http://www.vim.org"
arch="all"
license='GPL'
depends=
makedepends="ncurses-dev lua5.2-dev"
subpackages="$pkgname-doc"
#source="http://dev.alpinelinux.org/archive/vim/vim-$pkgver.tar.xz
source="ftp://ftp.vim.org/pub/vim/unix/vim-$pkgver.tar.bz2
vim-gcc47.patch
vimrc
"
_builddir="$srcdir"/${pkgname}${pkgver/./}
prepare() {
cd "$_builddir"
patch -p0 -i "$srcdir"/vim-gcc47.patch || return 1
# 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 \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir/" install
install -D "$srcdir"/vimrc "$pkgdir"/etc/vim/vimrc
}
md5sums="607e135c559be642f210094ad023dc65 vim-7.4.tar.bz2
a2e71b09d38921d43d2a552d4f0bd1aa vim-gcc47.patch
97aecde2ab504e543a96bec84b3b5638 vimrc"
sha256sums="d0f5a6d2c439f02d97fa21bd9121f4c5abb1f6cd8b5a79d3ca82867495734ade vim-7.4.tar.bz2
9997f5a3c36e5b41008ac2d84165dda4d20124043cbc033d1d69e5d884fb4334 vim-gcc47.patch
7ac7e5fd75fe315fd8b3ca4172056ebb9f06df0b5985d3ff88133dfcdd87076b vimrc"
sha512sums="65d55da556ee283a364b376d251b70e430b7a157bb5a8ee89565060ff9937907966d416cffd33f701b3314d0fdf16efe00065f66bc8459469f5ae2f713418e0e vim-7.4.tar.bz2
a212404de5e4bf70bd584e3f46a22c3e246f206cf995c5771a020be9eb7b6bc71d422788b309eb677b2822df94266854704c29802f2f8e47cea6905d68833460 vim-gcc47.patch
d9586b777881973cb5e48e18750336a522ed72c3127b2d6b6991e2b943468ca5b694476e7fa39ab469178c1375fc8f52627484e0fe377aea5811a513e35a7b02 vimrc"
|