diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..a477a6b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,54 @@ +# Generated by mksrcinfo v8 +# Fri Jun 14 18:37:49 UTC 2019 +pkgbase = vim-gvim + pkgver = 8.1.1528 + pkgrel = 1 + url = http://www.vim.org + arch = x86_64 + license = custom:vim + makedepends = gpm + makedepends = perl + makedepends = python2 + makedepends = python + makedepends = lua + makedepends = desktop-file-utils + makedepends = gtk2 + makedepends = gettext + makedepends = pkgconfig + makedepends = sed + makedepends = git + makedepends = ruby + makedepends = gtk3 + makedepends = libxt + source = vim-gvim::git://github.com/vim/vim#commit=b4086ffa32d97831f2d25a37f8c1340223dee5eb + source = license.txt + sha256sums = SKIP + sha256sums = bb4744930a0030085d382356e9fdd4f2049b6298147aee2470c7fca7ec82fd55 + +pkgname = vim-gvim-gtk2 + pkgdesc = Vi Improved, gtk2 gui + depends = vim-cli + depends = vim-gvim-common + depends = desktop-file-utils + depends = gtk2 + depends = hicolor-icon-theme + depends = shared-mime-info + provides = gvim + conflicts = vim-gvim-gtk3 + replaces = vim-gvim-gtk + +pkgname = vim-gvim-gtk3 + pkgdesc = Vi Improved, gtk3 gui + depends = vim-cli + depends = vim-gvim-common + depends = desktop-file-utils + depends = gtk3 + depends = hicolor-icon-theme + depends = shared-mime-info + provides = gvim + conflicts = vim-gvim-gtk2 + replaces = vim-gvim-gtk + +pkgname = vim-gvim-common + pkgdesc = common files for gvim/qvim + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e1a5bb --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +src +pkg +*.log +*.log.* +*.pkg.tar.?z diff --git a/.pkgupdate b/.pkgupdate new file mode 100644 index 0000000..f4ae5b8 --- /dev/null +++ b/.pkgupdate @@ -0,0 +1,9 @@ +nwVersion=$(wget -q -O- https://github.com/vim/vim/releases/ | grep -m1 -ie 'releases\/tag' | sed 's,.*tag\/v\([0-9a-z\.]*\)".*,\1,') +update__basever=$(echo $nwVersion | sed -e 's/\([0-9]*\.[0-9a-d]*\)\.\([0-9]*\)/\1/') +update__patchlevel=$(echo $nwVersion | sed -e 's/\([0-9]*\.[0-9a-d]*\)\.\([0-9]*\)/\2/') +update__gitcommit=$(wget -q -O- https://github.com/vim/vim/releases/tag/v$nwVersion | grep ' +# thx for the original vim pkg: +# Contributor: Jan "heftig" Steffens +# Contributor: tobias [ tobias at archlinux org ] +# Contributor: Daniel J Griffiths + +pkgbase=vim-gvim +pkgname=('vim-gvim-gtk2' 'vim-gvim-gtk3' 'vim-gvim-common') +_basever=8.1 +_patchlevel=1528 +if [ "$_patchlevel" = "0" ]; then + pkgver=${_basever} +else + pkgver=${_basever}.${_patchlevel} +fi +_gitcommit=b4086ffa32d97831f2d25a37f8c1340223dee5eb +pkgrel=1 +_versiondir=vim${_basever/./} +arch=('x86_64') +license=('custom:vim') +url="http://www.vim.org" +makedepends=('gpm' 'perl' 'python2' 'python' 'lua' 'desktop-file-utils' 'gtk2' 'gettext' 'pkgconfig' 'sed' 'git' 'ruby' 'gtk3' 'libxt') +source=( + "$pkgbase::git://github.com/vim/vim#commit=$_gitcommit" + 'license.txt' +) +sha256sums=('SKIP' + 'bb4744930a0030085d382356e9fdd4f2049b6298147aee2470c7fca7ec82fd55') + +prepare() { + # remove old build dirs if exist + [ -d gvim-build-gtk2 ] && rm -rf gvim-build-gtk2 + [ -d gvim-build-gtk3 ] && rm -rf gvim-build-gtk3 + + cp -a ${pkgbase} gvim-build-gtk2 + ( + cd gvim-build-gtk2 && rm -rf ./.git* + ) + + # define the place for the global (g)vimrc file (set to /etc/vimrc) + sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' \ + gvim-build-gtk2/src/feature.h + sed -i 's|^.*\(#define VIMRC_FILE.*"\) .*$|\1|' \ + gvim-build-gtk2/src/feature.h + + cp -a gvim-build-gtk2 gvim-build-gtk3 + + cd ${srcdir}/gvim-build-gtk2 + (cd src && autoconf) + + cd ${srcdir}/gvim-build-gtk3 + (cd src && autoconf) +} + +build() { + msg2 'Building vim-gvim-gtk2' + cd ${srcdir}/gvim-build-gtk2 + ./configure --prefix=/usr --localstatedir=/var/lib/vim \ + --mandir=/usr/share/man --with-compiledby=BlackEagle \ + --with-features=huge --enable-gpm --enable-acl --with-x=yes \ + --enable-gui=gtk2 --enable-multibyte --enable-cscope \ + --disable-netbeans --enable-perlinterp=dynamic \ + --enable-pythoninterp=dynamic --enable-python3interp=dynamic \ + --enable-rubyinterp=dynamic --enable-luainterp=dynamic + #--disable-rubyinterp --enable-luainterp=dynamic + make + + msg2 'Building vim-gvim-gtk3' + cd ${srcdir}/gvim-build-gtk3 + ./configure --prefix=/usr --localstatedir=/var/lib/vim \ + --mandir=/usr/share/man --with-compiledby=BlackEagle \ + --with-features=huge --enable-gpm --enable-acl --with-x=yes \ + --enable-gui=gtk3 --enable-multibyte --enable-cscope \ + --disable-netbeans --enable-perlinterp=dynamic \ + --enable-pythoninterp=dynamic --enable-python3interp=dynamic \ + --enable-rubyinterp=dynamic --enable-luainterp=dynamic + #--disable-rubyinterp --enable-luainterp=dynamic + make +} + +package_vim-gvim-gtk2() { + pkgdesc='Vi Improved, gtk2 gui' + depends=('vim-cli' 'vim-gvim-common' 'desktop-file-utils' 'gtk2' 'hicolor-icon-theme' 'shared-mime-info') + provides=('gvim') + replaces=('vim-gvim-gtk') + conflicts=('vim-gvim-gtk3') + + # allow install of icons and desktopfiles + install -dm755 "${pkgdir}/usr/share/icons/hicolor/48x48/apps" + install -dm755 "${pkgdir}/usr/share/icons/locolor/32x32/apps" + install -dm755 "${pkgdir}/usr/share/icons/locolor/16x16/apps" + install -dm755 "${pkgdir}/usr/share/applications" + + cd ${srcdir}/gvim-build-gtk2 + make -j1 VIMRCLOC=/etc DESTDIR=${pkgdir} install + + # move vim to gvim + rm -f ${pkgdir}/usr/bin/gvim + mv ${pkgdir}/usr/bin/{vim,gvim} + # remove files provided by vim-cli + rm -f ${pkgdir}/usr/bin/{vimtutor,xxd,rview,rvim,view,vimdiff,ex} + rm -f ${pkgdir}/usr/share/man/*{,/*}/{vim*,vimtutor*,xxd*,rview*,rvim*,view*,vimdiff*,ex*} + # recreate gvim symlinks + ( + cd ${pkgdir}/usr/bin + for link in eview evim gview gvimdiff rgview rgvim; do + rm -f ${link} + ln -s gvim ${link} + done + ) + + # Runtime provided by runtime package + rm -r ${pkgdir}/usr/share/vim + + # Move the man pages for common packaging + mv ${pkgdir}/usr/share/man ${srcdir}/gvim-man-install + + # remove vim desktop file + rm ${pkgdir}/usr/share/applications/vim.desktop + + # license + install -dm755 ${pkgdir}/usr/share/licenses/vim-gvim-gtk2 + install -Dm644 ${srcdir}/license.txt \ + ${pkgdir}/usr/share/licenses/vim-gvim-gtk2/license.txt +} + +package_vim-gvim-gtk3() { + pkgdesc='Vi Improved, gtk3 gui' + depends=('vim-cli' 'vim-gvim-common' 'desktop-file-utils' 'gtk3' 'hicolor-icon-theme' 'shared-mime-info') + provides=('gvim') + replaces=('vim-gvim-gtk') + conflicts=('vim-gvim-gtk2') + + # allow install of icons and desktopfiles + install -dm755 "${pkgdir}/usr/share/icons/hicolor/48x48/apps" + install -dm755 "${pkgdir}/usr/share/icons/locolor/32x32/apps" + install -dm755 "${pkgdir}/usr/share/icons/locolor/16x16/apps" + install -dm755 "${pkgdir}/usr/share/applications" + + cd ${srcdir}/gvim-build-gtk3 + make -j1 VIMRCLOC=/etc DESTDIR=${pkgdir} install + + # move vim to gvim + rm -f ${pkgdir}/usr/bin/gvim + mv ${pkgdir}/usr/bin/{vim,gvim} + # remove files provided by vim-cli + rm -f ${pkgdir}/usr/bin/{vimtutor,xxd,rview,rvim,view,vimdiff,ex} + rm -f ${pkgdir}/usr/share/man/*{,/*}/{vim*,vimtutor*,xxd*,rview*,rvim*,view*,vimdiff*,ex*} + # recreate gvim symlinks + ( + cd ${pkgdir}/usr/bin + for link in eview evim gview gvimdiff rgview rgvim; do + rm -f ${link} + ln -s gvim ${link} + done + ) + + # Runtime provided by runtime package + rm -r ${pkgdir}/usr/share/vim + + # Move the man pages for common packaging + mv ${pkgdir}/usr/share/man ${srcdir}/gvim-man-install + + # remove vim desktop file + rm ${pkgdir}/usr/share/applications/vim.desktop + + # license + install -dm755 ${pkgdir}/usr/share/licenses/vim-gvim-gtk3 + install -Dm644 ${srcdir}/license.txt \ + ${pkgdir}/usr/share/licenses/vim-gvim-gtk3/license.txt +} + +package_vim-gvim-common() { + pkgdesc='common files for gvim/qvim' + + # Install the common split from gvim/qvim + install -dm755 ${pkgdir}/usr/share + mv ${srcdir}/gvim-man-install ${pkgdir}/usr/share/man + + # license + install -dm755 ${pkgdir}/usr/share/licenses/vim-gvim-common + install -Dm644 ${srcdir}/license.txt \ + ${pkgdir}/usr/share/licenses/vim-gvim-common/license.txt +} + diff --git a/README.md b/README.md new file mode 100644 index 0000000..16d9cff --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +vim-tiny +======================================== + +url = http://www.vim.org diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..dd68529 --- /dev/null +++ b/license.txt @@ -0,0 +1,78 @@ +VIM LICENSE + +I) There are no restrictions on distributing unmodified copies of Vim except + that they must include this license text. You can also distribute + unmodified parts of Vim, likewise unrestricted except that they must + include this license text. You are also allowed to include executables + that you made from the unmodified Vim sources, plus your own usage + examples and Vim scripts. + +II) It is allowed to distribute a modified (or extended) version of Vim, + including executables and/or source code, when the following four + conditions are met: + 1) This license text must be included unmodified. + 2) The modified Vim must be distributed in one of the following five ways: + a) If you make changes to Vim yourself, you must clearly describe in + the distribution how to contact you. When the maintainer asks you + (in any way) for a copy of the modified Vim you distributed, you + must make your changes, including source code, available to the + maintainer without fee. The maintainer reserves the right to + include your changes in the official version of Vim. What the + maintainer will do with your changes and under what license they + will be distributed is negotiable. If there has been no negotiation + then this license, or a later version, also applies to your changes. + The current maintainer is Bram Moolenaar . If this + changes it will be announced in appropriate places (most likely + vim.sf.net, www.vim.org and/or comp.editors). When it is completely + impossible to contact the maintainer, the obligation to send him + your changes ceases. Once the maintainer has confirmed that he has + received your changes they will not have to be sent again. + b) If you have received a modified Vim that was distributed as + mentioned under a) you are allowed to further distribute it + unmodified, as mentioned at I). If you make additional changes the + text under a) applies to those changes. + c) Provide all the changes, including source code, with every copy of + the modified Vim you distribute. This may be done in the form of a + context diff. You can choose what license to use for new code you + add. The changes and their license must not restrict others from + making their own changes to the official version of Vim. + d) When you have a modified Vim which includes changes as mentioned + under c), you can distribute it without the source code for the + changes if the following three conditions are met: + - The license that applies to the changes permits you to distribute + the changes to the Vim maintainer without fee or restriction, and + permits the Vim maintainer to include the changes in the official + version of Vim without fee or restriction. + - You keep the changes for at least three years after last + distributing the corresponding modified Vim. When the maintainer + or someone who you distributed the modified Vim to asks you (in + any way) for the changes within this period, you must make them + available to him. + - You clearly describe in the distribution how to contact you. This + contact information must remain valid for at least three years + after last distributing the corresponding modified Vim, or as long + as possible. + e) When the GNU General Public License (GPL) applies to the changes, + you can distribute the modified Vim under the GNU GPL version 2 or + any later version. + 3) A message must be added, at least in the output of the ":version" + command and in the intro screen, such that the user of the modified Vim + is able to see that it was modified. When distributing as mentioned + under 2)e) adding the message is only required for as far as this does + not conflict with the license used for the changes. + 4) The contact information as required under 2)a) and 2)d) must not be + removed or changed, except that the person himself can make + corrections. + +III) If you distribute a modified version of Vim, you are encouraged to use + the Vim license for your changes and make them available to the + maintainer, including the source code. The preferred way to do this is + by e-mail or by uploading the files to a server and e-mailing the URL. + If the number of changes is small (e.g., a modified Makefile) e-mailing a + context diff will do. The e-mail address to be used is + + +IV) It is not allowed to remove this license from the distribution of the Vim + sources, parts of it or from a modified version. You may use this + license for previous Vim releases instead of the license that they came + with, at your option.