aboutsummaryrefslogtreecommitdiffstats
path: root/main/vim/APKBUILD
blob: 9c2523a1f9b79c2253ccc7b3ab01916be6edd2d0 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vim
pkgver=7.3.1136
_srcver=${pkgver%.*}
_patchver=${pkgver##*.}
pkgrel=0
pkgdesc="advanced text editor"
url="http://www.vim.org"
arch="all"
license='GPL'
depends=
makedepends="ncurses-dev lua-dev"
subpackages="$pkgname-doc"
source="http://dev.alpinelinux.org/archive/vim/vim-$pkgver.tar.xz
	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 --prefix=/usr \
		--enable-luainterp \
		--without-x \
		--disable-nls \
		--enable-multibyte \
		--enable-gui=no
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir/" install
	install -D "$srcdir"/vimrc "$pkgdir"/etc/vim/vimrc
}

md5sums="abb7b7496eedd80bc6307d5ebef51004  vim-7.3.1136.tar.xz
a2e71b09d38921d43d2a552d4f0bd1aa  vim-gcc47.patch
97aecde2ab504e543a96bec84b3b5638  vimrc"
sha256sums="585fc5d1616f2167a37f488538bc393a8edacf26b3573312819faecf43a1b257  vim-7.3.1136.tar.xz
9997f5a3c36e5b41008ac2d84165dda4d20124043cbc033d1d69e5d884fb4334  vim-gcc47.patch
7ac7e5fd75fe315fd8b3ca4172056ebb9f06df0b5985d3ff88133dfcdd87076b  vimrc"
sha512sums="804f55dfa849c9946c44d767c02b40174b2595f273d41c4f8854a37a9c7835c338972b0cb4f311b4c4c94afc6d4fb9a233dac845b2427d0253f38bb2982cdecc  vim-7.3.1136.tar.xz
a212404de5e4bf70bd584e3f46a22c3e246f206cf995c5771a020be9eb7b6bc71d422788b309eb677b2822df94266854704c29802f2f8e47cea6905d68833460  vim-gcc47.patch
d9586b777881973cb5e48e18750336a522ed72c3127b2d6b6991e2b943468ca5b694476e7fa39ab469178c1375fc8f52627484e0fe377aea5811a513e35a7b02  vimrc"