aboutsummaryrefslogtreecommitdiffstats
path: root/main/vim/APKBUILD
blob: 0a76e4224a3b307c2636376cdb0d76eadcdbb231 (plain) (blame)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vim
pkgver=7.3.82
_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"

# use "abuild patchlist >> APKBUILD" to generate the list of patches
source="ftp://ftp.vim.org/pub/vim/unix/vim-${_srcver}.tar.bz2
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.001
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.002
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.003
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.004
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.005
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.006
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.007
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.008
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.009
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.010
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.011
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.012
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.013
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.014
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.015
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.016
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.017
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.018
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.019
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.020
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.021
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.022
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.023
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.024
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.025
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.026
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.027
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.028
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.029
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.030
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.031
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.032
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.033
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.034
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.035
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.036
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.037
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.038
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.039
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.040
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.041
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.042
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.043
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.044
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.045
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.046
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.047
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.048
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.049
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.050
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.051
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.052
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.053
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.054
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.055
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.056
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.057
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.058
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.059
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.060
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.061
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.062
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.063
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.064
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.065
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.066
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.067
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.068
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.069
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.070
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.071
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.072
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.073
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.074
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.075
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.076
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.077
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.078
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.079
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.080
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.081
	ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.082
	vimrc
	"

# this generates the patches list
patchlist() {
	local i j
	for i in $(seq 1 $_patchver); do
		local v=$(printf "%0.3i" $i)
		echo -e "\tftp://ftp.vim.org/pub/vim/patches/$_srcver/$_srcver.$v"
	done
}

_builddir="$srcdir"/${pkgname}73
prepare() {
	local i
	cd "$_builddir"

	for i in $source ; do
		case $i in
		*.patch)
			msg "Applying $i"
			patch -p0 < $i || return 1
			;;
		esac
	done

	# 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
	make || return 1
}

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

md5sums="5b9510a17074e2b37d8bb38ae09edbf2  vim-7.3.tar.bz2
aa5582d8289b43255f45d4bb6f62e140  7.3.001
2949cbdfe86f533c487fd144c5935c7a  7.3.002
9059db41cf3a468935745242cb9c0514  7.3.003
9aaa4490d2fbf9a1e780a151fb41f279  7.3.004
bf5b5fad8c4de23449fa7c7c01969369  7.3.005
f53d95dfb1eee5f5f769594174d0e9d4  7.3.006
a7a4c56110662bc3ba6fbb2fd645d94f  7.3.007
be756a231afe754d004b6c8a9d12bb50  7.3.008
f4ed2feff44e2c1898fd5e60f9f97b0d  7.3.009
4fffed01d3683b0b8b23df600a0bada2  7.3.010
4ee8f06dce300c0be029bf00b03ef093  7.3.011
89faf7d5eef1d1d50b657fe34ee7c90b  7.3.012
6a029d61f7d51c1bea55330732676319  7.3.013
d0109c0c413c405fdb827ec20f3903d8  7.3.014
4db0a869dbe00c360541ad2c1ca87a2d  7.3.015
e0c634532a865d7ed47942080e371b3e  7.3.016
f52aa5bc3df02c3bb4c75849b2b5f431  7.3.017
02270ecbc1dc2f57de80441ac7cdd0f0  7.3.018
5c1be1a0a107261e0a716c877c82fc97  7.3.019
ef09917435a7cab9382abe3708cf5152  7.3.020
53c90651baf1b4b28c99947de58deb91  7.3.021
c4cb1bf3fa0a45d9cad997cd02fa9439  7.3.022
1e34e216b0e419096f796d3511ce88da  7.3.023
5c2ff27d8ce8d1aeb42ff16ca1cb89c2  7.3.024
69b3e00a17230da16d3be4b96f125196  7.3.025
687a80a82d05e8e91e9ee659b3e0dd67  7.3.026
1994a0d1e52111b9fa1b999745da93b8  7.3.027
2438a52f25cf167bbf5711fc8c7323d7  7.3.028
302ca6aa621c215736f3db069f8c2285  7.3.029
ceb0e12297907b13dd39fafffa731c62  7.3.030
acb42f7f4545a63d35396360dc2799ff  7.3.031
56c9d1681bfc9fe5e76c281b905f0ad8  7.3.032
4a399b6f1bcde6d991088118f5a58222  7.3.033
40580589a13a36cc72a600200b93b8d2  7.3.034
8f7a617b0cf8fea46e4b1557bc286fda  7.3.035
3ac58b7fe8347ad87f3628bfb4970f1b  7.3.036
d83c7635e8b65db98a377f3cc7b72ce0  7.3.037
a310c68726540ac1a0759ef12778bed1  7.3.038
6b7243d85b86e03b4a782e4bf6d7646e  7.3.039
8aa33a527433f1907b72ac7c514d455d  7.3.040
979abe1512bc48dbaed028a23cb2f6cc  7.3.041
984ce81978ef2b12b3a09986d37e4719  7.3.042
27b2418128b4322c3cb92b13d577ad6c  7.3.043
c29e637b242682dc6df544a0bc89abc4  7.3.044
bd6ac17eecf226a2d6a31e4fb9069ded  7.3.045
d97f518c548de06b11b5682f2ca4d9a9  7.3.046
ae37e72299f02ea1b7f2bb59932ed306  7.3.047
39aaaf13dfef317febb2442626f262f1  7.3.048
6469fb212e95ad83c21aaaaf8aee0f3a  7.3.049
e40dc723ef91adee9854faceaba1e201  7.3.050
5611eda78907716863ebd6ebd19a000f  7.3.051
01011da656094510c1cdabbc80c129b9  7.3.052
faaf035020dcf22b57fa76c998e4553b  7.3.053
90bd11788f022dc1107f93e702734a2a  7.3.054
5b4fe73d1c47ab36a6b0a8f5ddd2fe65  7.3.055
b53b7452e5b92bb1b91e9dd97e52dfcd  7.3.056
bce5e42b7d2b7a91c332e39ed1f0eec8  7.3.057
1c6054466398f4612a81289de764ef5c  7.3.058
e2cf5697e8708390e106553de68ebb2b  7.3.059
16da4369ed89f0305cf2c3ed1bf338fc  7.3.060
cbed85cdfe0ad4a1b7b43efc64b1531c  7.3.061
77f08258dbf30e12914475802eeb9b3d  7.3.062
97c878554fec3d4f9caf934c0a0c227d  7.3.063
5f74fee465073a3eb48565300636d9db  7.3.064
a20ea56117d918b43f5109c9c06787ed  7.3.065
7c51cfbd55673906035df7b274b247c4  7.3.066
45625adbc8757b46ba9393dc136cc2e1  7.3.067
49b340dc261ed455c97d955517264a89  7.3.068
b423664733d7fd9d7de052dad8154643  7.3.069
b9ef636a41df5500f8437d38ab3177e2  7.3.070
1afcb15f38d1e4926918dbbe52356382  7.3.071
132f122c3b8ac49c1ad56f54c8994e3a  7.3.072
4a387415ce192506bcb7353cd8dda3c0  7.3.073
e2b2af94486554c6818693fbf1e3c34e  7.3.074
91acb2d1e70f6b7bff5e02460d4c3e62  7.3.075
2627b860bed5c08cead6e48986577fed  7.3.076
2a8c6197b193a16cb273606d8afcb6b5  7.3.077
660b3e99b1433a4e992e087e66bc1567  7.3.078
f69b91c3c55ef81df257178e0af1ca73  7.3.079
bbe3b3aa56bde525cd4028e807014b33  7.3.080
d4ce2f5eab7a74f8a51a352b05fde53f  7.3.081
75b69fb091a12c588992dd282841bde0  7.3.082
97aecde2ab504e543a96bec84b3b5638  vimrc"