blob: 42f15cef76a635e371fc20a66cc40a6e6b83e4b7 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vim
pkgver=7.4.712
_srcver=${pkgver%.*}
_patchver=${pkgver##*.}
pkgrel=0
pkgdesc="advanced text editor"
url="http://www.vim.org"
arch="all"
license='GPL'
depends=
makedepends="ncurses-dev lua5.2-dev"
subpackages="$pkgname-doc ${pkgname}diff"
# hg clone https://vim.googlecode.com/archive/v${pkgver//./-}.tar.gz
#source="vim-$pkgver.tar.gz::https://vim.googlecode.com/archive/v${pkgver//./-}.tar.gz
source="http://dev.alpinelinux.org/archive/vim/vim-$pkgver.tar.gz
vimrc
"
_builddir="$srcdir"/vim-v${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 \
--without-x \
--disable-nls \
--enable-multibyte \
--enable-gui=no \
--with-lua-prefix=/usr/lua5.2 \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make -j1 DESTDIR="$pkgdir/" install
install -D "$srcdir"/vimrc "$pkgdir"/etc/vim/vimrc
}
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="ad8543cadbadb7f3a71d35296ce3612f vim-7.4.712.tar.gz
97aecde2ab504e543a96bec84b3b5638 vimrc"
sha256sums="7fe2a9cb24b258a725c5a95f052b62f341aac122aab1243a9a270eff722a37e3 vim-7.4.712.tar.gz
7ac7e5fd75fe315fd8b3ca4172056ebb9f06df0b5985d3ff88133dfcdd87076b vimrc"
sha512sums="db0e20b3b43ec4033aa057a2676d2a294d12139ecfa7be2403a54e2b0d869e5ba6a606f7dd964752c802129c6e95afee7da2e48f5605c7f64041aa8fb2354aa7 vim-7.4.712.tar.gz
d9586b777881973cb5e48e18750336a522ed72c3127b2d6b6991e2b943468ca5b694476e7fa39ab469178c1375fc8f52627484e0fe377aea5811a513e35a7b02 vimrc"
|