Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 9f7e669

Browse files
committed
vim-gvim :: 8.1.1528-1
Signed-off-by: BlackEagle <[email protected]>
0 parents  commit 9f7e669

File tree

6 files changed

+336
-0
lines changed

6 files changed

+336
-0
lines changed

.SRCINFO

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Generated by mksrcinfo v8
2+
# Fri Jun 14 18:37:49 UTC 2019
3+
pkgbase = vim-gvim
4+
pkgver = 8.1.1528
5+
pkgrel = 1
6+
url = http://www.vim.org
7+
arch = x86_64
8+
license = custom:vim
9+
makedepends = gpm
10+
makedepends = perl
11+
makedepends = python2
12+
makedepends = python
13+
makedepends = lua
14+
makedepends = desktop-file-utils
15+
makedepends = gtk2
16+
makedepends = gettext
17+
makedepends = pkgconfig
18+
makedepends = sed
19+
makedepends = git
20+
makedepends = ruby
21+
makedepends = gtk3
22+
makedepends = libxt
23+
source = vim-gvim::git://github.com/vim/vim#commit=b4086ffa32d97831f2d25a37f8c1340223dee5eb
24+
source = license.txt
25+
sha256sums = SKIP
26+
sha256sums = bb4744930a0030085d382356e9fdd4f2049b6298147aee2470c7fca7ec82fd55
27+
28+
pkgname = vim-gvim-gtk2
29+
pkgdesc = Vi Improved, gtk2 gui
30+
depends = vim-cli
31+
depends = vim-gvim-common
32+
depends = desktop-file-utils
33+
depends = gtk2
34+
depends = hicolor-icon-theme
35+
depends = shared-mime-info
36+
provides = gvim
37+
conflicts = vim-gvim-gtk3
38+
replaces = vim-gvim-gtk
39+
40+
pkgname = vim-gvim-gtk3
41+
pkgdesc = Vi Improved, gtk3 gui
42+
depends = vim-cli
43+
depends = vim-gvim-common
44+
depends = desktop-file-utils
45+
depends = gtk3
46+
depends = hicolor-icon-theme
47+
depends = shared-mime-info
48+
provides = gvim
49+
conflicts = vim-gvim-gtk2
50+
replaces = vim-gvim-gtk
51+
52+
pkgname = vim-gvim-common
53+
pkgdesc = common files for gvim/qvim
54+

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
src
2+
pkg
3+
*.log
4+
*.log.*
5+
*.pkg.tar.?z

.pkgupdate

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
nwVersion=$(wget -q -O- https://github.com/vim/vim/releases/ | grep -m1 -ie 'releases\/tag' | sed 's,.*tag\/v\([0-9a-z\.]*\)".*,\1,')
2+
update__basever=$(echo $nwVersion | sed -e 's/\([0-9]*\.[0-9a-d]*\)\.\([0-9]*\)/\1/')
3+
update__patchlevel=$(echo $nwVersion | sed -e 's/\([0-9]*\.[0-9a-d]*\)\.\([0-9]*\)/\2/')
4+
update__gitcommit=$(wget -q -O- https://github.com/vim/vim/releases/tag/v$nwVersion | grep '<a href="/vim/vim/commit' | perl -pe 's/.*commit\/(.*?)".*/\1/' | head -n1)
5+
if [ "$update__patchlevel" = "0" ]; then
6+
update_pkgver="$update__basever"
7+
else
8+
update_pkgver="$update__basever.$update__patchlevel"
9+
fi

PKGBUILD

+186
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
# vim:set ft=sh:
2+
# Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
3+
# thx for the original vim pkg:
4+
# Contributor: Jan "heftig" Steffens <[email protected]>
5+
# Contributor: tobias [ tobias at archlinux org ]
6+
# Contributor: Daniel J Griffiths <[email protected]>
7+
8+
pkgbase=vim-gvim
9+
pkgname=('vim-gvim-gtk2' 'vim-gvim-gtk3' 'vim-gvim-common')
10+
_basever=8.1
11+
_patchlevel=1528
12+
if [ "$_patchlevel" = "0" ]; then
13+
pkgver=${_basever}
14+
else
15+
pkgver=${_basever}.${_patchlevel}
16+
fi
17+
_gitcommit=b4086ffa32d97831f2d25a37f8c1340223dee5eb
18+
pkgrel=1
19+
_versiondir=vim${_basever/./}
20+
arch=('x86_64')
21+
license=('custom:vim')
22+
url="http://www.vim.org"
23+
makedepends=('gpm' 'perl' 'python2' 'python' 'lua' 'desktop-file-utils' 'gtk2' 'gettext' 'pkgconfig' 'sed' 'git' 'ruby' 'gtk3' 'libxt')
24+
source=(
25+
"$pkgbase::git://github.com/vim/vim#commit=$_gitcommit"
26+
'license.txt'
27+
)
28+
sha256sums=('SKIP'
29+
'bb4744930a0030085d382356e9fdd4f2049b6298147aee2470c7fca7ec82fd55')
30+
31+
prepare() {
32+
# remove old build dirs if exist
33+
[ -d gvim-build-gtk2 ] && rm -rf gvim-build-gtk2
34+
[ -d gvim-build-gtk3 ] && rm -rf gvim-build-gtk3
35+
36+
cp -a ${pkgbase} gvim-build-gtk2
37+
(
38+
cd gvim-build-gtk2 && rm -rf ./.git*
39+
)
40+
41+
# define the place for the global (g)vimrc file (set to /etc/vimrc)
42+
sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' \
43+
gvim-build-gtk2/src/feature.h
44+
sed -i 's|^.*\(#define VIMRC_FILE.*"\) .*$|\1|' \
45+
gvim-build-gtk2/src/feature.h
46+
47+
cp -a gvim-build-gtk2 gvim-build-gtk3
48+
49+
cd ${srcdir}/gvim-build-gtk2
50+
(cd src && autoconf)
51+
52+
cd ${srcdir}/gvim-build-gtk3
53+
(cd src && autoconf)
54+
}
55+
56+
build() {
57+
msg2 'Building vim-gvim-gtk2'
58+
cd ${srcdir}/gvim-build-gtk2
59+
./configure --prefix=/usr --localstatedir=/var/lib/vim \
60+
--mandir=/usr/share/man --with-compiledby=BlackEagle \
61+
--with-features=huge --enable-gpm --enable-acl --with-x=yes \
62+
--enable-gui=gtk2 --enable-multibyte --enable-cscope \
63+
--disable-netbeans --enable-perlinterp=dynamic \
64+
--enable-pythoninterp=dynamic --enable-python3interp=dynamic \
65+
--enable-rubyinterp=dynamic --enable-luainterp=dynamic
66+
#--disable-rubyinterp --enable-luainterp=dynamic
67+
make
68+
69+
msg2 'Building vim-gvim-gtk3'
70+
cd ${srcdir}/gvim-build-gtk3
71+
./configure --prefix=/usr --localstatedir=/var/lib/vim \
72+
--mandir=/usr/share/man --with-compiledby=BlackEagle \
73+
--with-features=huge --enable-gpm --enable-acl --with-x=yes \
74+
--enable-gui=gtk3 --enable-multibyte --enable-cscope \
75+
--disable-netbeans --enable-perlinterp=dynamic \
76+
--enable-pythoninterp=dynamic --enable-python3interp=dynamic \
77+
--enable-rubyinterp=dynamic --enable-luainterp=dynamic
78+
#--disable-rubyinterp --enable-luainterp=dynamic
79+
make
80+
}
81+
82+
package_vim-gvim-gtk2() {
83+
pkgdesc='Vi Improved, gtk2 gui'
84+
depends=('vim-cli' 'vim-gvim-common' 'desktop-file-utils' 'gtk2' 'hicolor-icon-theme' 'shared-mime-info')
85+
provides=('gvim')
86+
replaces=('vim-gvim-gtk')
87+
conflicts=('vim-gvim-gtk3')
88+
89+
# allow install of icons and desktopfiles
90+
install -dm755 "${pkgdir}/usr/share/icons/hicolor/48x48/apps"
91+
install -dm755 "${pkgdir}/usr/share/icons/locolor/32x32/apps"
92+
install -dm755 "${pkgdir}/usr/share/icons/locolor/16x16/apps"
93+
install -dm755 "${pkgdir}/usr/share/applications"
94+
95+
cd ${srcdir}/gvim-build-gtk2
96+
make -j1 VIMRCLOC=/etc DESTDIR=${pkgdir} install
97+
98+
# move vim to gvim
99+
rm -f ${pkgdir}/usr/bin/gvim
100+
mv ${pkgdir}/usr/bin/{vim,gvim}
101+
# remove files provided by vim-cli
102+
rm -f ${pkgdir}/usr/bin/{vimtutor,xxd,rview,rvim,view,vimdiff,ex}
103+
rm -f ${pkgdir}/usr/share/man/*{,/*}/{vim*,vimtutor*,xxd*,rview*,rvim*,view*,vimdiff*,ex*}
104+
# recreate gvim symlinks
105+
(
106+
cd ${pkgdir}/usr/bin
107+
for link in eview evim gview gvimdiff rgview rgvim; do
108+
rm -f ${link}
109+
ln -s gvim ${link}
110+
done
111+
)
112+
113+
# Runtime provided by runtime package
114+
rm -r ${pkgdir}/usr/share/vim
115+
116+
# Move the man pages for common packaging
117+
mv ${pkgdir}/usr/share/man ${srcdir}/gvim-man-install
118+
119+
# remove vim desktop file
120+
rm ${pkgdir}/usr/share/applications/vim.desktop
121+
122+
# license
123+
install -dm755 ${pkgdir}/usr/share/licenses/vim-gvim-gtk2
124+
install -Dm644 ${srcdir}/license.txt \
125+
${pkgdir}/usr/share/licenses/vim-gvim-gtk2/license.txt
126+
}
127+
128+
package_vim-gvim-gtk3() {
129+
pkgdesc='Vi Improved, gtk3 gui'
130+
depends=('vim-cli' 'vim-gvim-common' 'desktop-file-utils' 'gtk3' 'hicolor-icon-theme' 'shared-mime-info')
131+
provides=('gvim')
132+
replaces=('vim-gvim-gtk')
133+
conflicts=('vim-gvim-gtk2')
134+
135+
# allow install of icons and desktopfiles
136+
install -dm755 "${pkgdir}/usr/share/icons/hicolor/48x48/apps"
137+
install -dm755 "${pkgdir}/usr/share/icons/locolor/32x32/apps"
138+
install -dm755 "${pkgdir}/usr/share/icons/locolor/16x16/apps"
139+
install -dm755 "${pkgdir}/usr/share/applications"
140+
141+
cd ${srcdir}/gvim-build-gtk3
142+
make -j1 VIMRCLOC=/etc DESTDIR=${pkgdir} install
143+
144+
# move vim to gvim
145+
rm -f ${pkgdir}/usr/bin/gvim
146+
mv ${pkgdir}/usr/bin/{vim,gvim}
147+
# remove files provided by vim-cli
148+
rm -f ${pkgdir}/usr/bin/{vimtutor,xxd,rview,rvim,view,vimdiff,ex}
149+
rm -f ${pkgdir}/usr/share/man/*{,/*}/{vim*,vimtutor*,xxd*,rview*,rvim*,view*,vimdiff*,ex*}
150+
# recreate gvim symlinks
151+
(
152+
cd ${pkgdir}/usr/bin
153+
for link in eview evim gview gvimdiff rgview rgvim; do
154+
rm -f ${link}
155+
ln -s gvim ${link}
156+
done
157+
)
158+
159+
# Runtime provided by runtime package
160+
rm -r ${pkgdir}/usr/share/vim
161+
162+
# Move the man pages for common packaging
163+
mv ${pkgdir}/usr/share/man ${srcdir}/gvim-man-install
164+
165+
# remove vim desktop file
166+
rm ${pkgdir}/usr/share/applications/vim.desktop
167+
168+
# license
169+
install -dm755 ${pkgdir}/usr/share/licenses/vim-gvim-gtk3
170+
install -Dm644 ${srcdir}/license.txt \
171+
${pkgdir}/usr/share/licenses/vim-gvim-gtk3/license.txt
172+
}
173+
174+
package_vim-gvim-common() {
175+
pkgdesc='common files for gvim/qvim'
176+
177+
# Install the common split from gvim/qvim
178+
install -dm755 ${pkgdir}/usr/share
179+
mv ${srcdir}/gvim-man-install ${pkgdir}/usr/share/man
180+
181+
# license
182+
install -dm755 ${pkgdir}/usr/share/licenses/vim-gvim-common
183+
install -Dm644 ${srcdir}/license.txt \
184+
${pkgdir}/usr/share/licenses/vim-gvim-common/license.txt
185+
}
186+

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
vim-tiny
2+
========================================
3+
4+
url = http://www.vim.org

license.txt

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
VIM LICENSE
2+
3+
I) There are no restrictions on distributing unmodified copies of Vim except
4+
that they must include this license text. You can also distribute
5+
unmodified parts of Vim, likewise unrestricted except that they must
6+
include this license text. You are also allowed to include executables
7+
that you made from the unmodified Vim sources, plus your own usage
8+
examples and Vim scripts.
9+
10+
II) It is allowed to distribute a modified (or extended) version of Vim,
11+
including executables and/or source code, when the following four
12+
conditions are met:
13+
1) This license text must be included unmodified.
14+
2) The modified Vim must be distributed in one of the following five ways:
15+
a) If you make changes to Vim yourself, you must clearly describe in
16+
the distribution how to contact you. When the maintainer asks you
17+
(in any way) for a copy of the modified Vim you distributed, you
18+
must make your changes, including source code, available to the
19+
maintainer without fee. The maintainer reserves the right to
20+
include your changes in the official version of Vim. What the
21+
maintainer will do with your changes and under what license they
22+
will be distributed is negotiable. If there has been no negotiation
23+
then this license, or a later version, also applies to your changes.
24+
The current maintainer is Bram Moolenaar <[email protected]>. If this
25+
changes it will be announced in appropriate places (most likely
26+
vim.sf.net, www.vim.org and/or comp.editors). When it is completely
27+
impossible to contact the maintainer, the obligation to send him
28+
your changes ceases. Once the maintainer has confirmed that he has
29+
received your changes they will not have to be sent again.
30+
b) If you have received a modified Vim that was distributed as
31+
mentioned under a) you are allowed to further distribute it
32+
unmodified, as mentioned at I). If you make additional changes the
33+
text under a) applies to those changes.
34+
c) Provide all the changes, including source code, with every copy of
35+
the modified Vim you distribute. This may be done in the form of a
36+
context diff. You can choose what license to use for new code you
37+
add. The changes and their license must not restrict others from
38+
making their own changes to the official version of Vim.
39+
d) When you have a modified Vim which includes changes as mentioned
40+
under c), you can distribute it without the source code for the
41+
changes if the following three conditions are met:
42+
- The license that applies to the changes permits you to distribute
43+
the changes to the Vim maintainer without fee or restriction, and
44+
permits the Vim maintainer to include the changes in the official
45+
version of Vim without fee or restriction.
46+
- You keep the changes for at least three years after last
47+
distributing the corresponding modified Vim. When the maintainer
48+
or someone who you distributed the modified Vim to asks you (in
49+
any way) for the changes within this period, you must make them
50+
available to him.
51+
- You clearly describe in the distribution how to contact you. This
52+
contact information must remain valid for at least three years
53+
after last distributing the corresponding modified Vim, or as long
54+
as possible.
55+
e) When the GNU General Public License (GPL) applies to the changes,
56+
you can distribute the modified Vim under the GNU GPL version 2 or
57+
any later version.
58+
3) A message must be added, at least in the output of the ":version"
59+
command and in the intro screen, such that the user of the modified Vim
60+
is able to see that it was modified. When distributing as mentioned
61+
under 2)e) adding the message is only required for as far as this does
62+
not conflict with the license used for the changes.
63+
4) The contact information as required under 2)a) and 2)d) must not be
64+
removed or changed, except that the person himself can make
65+
corrections.
66+
67+
III) If you distribute a modified version of Vim, you are encouraged to use
68+
the Vim license for your changes and make them available to the
69+
maintainer, including the source code. The preferred way to do this is
70+
by e-mail or by uploading the files to a server and e-mailing the URL.
71+
If the number of changes is small (e.g., a modified Makefile) e-mailing a
72+
context diff will do. The e-mail address to be used is
73+
74+
75+
IV) It is not allowed to remove this license from the distribution of the Vim
76+
sources, parts of it or from a modified version. You may use this
77+
license for previous Vim releases instead of the license that they came
78+
with, at your option.

0 commit comments

Comments
 (0)