summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/gvim/APKBUILD77
1 files changed, 77 insertions, 0 deletions
diff --git a/user/gvim/APKBUILD b/user/gvim/APKBUILD
new file mode 100644
index 000000000..91e8e1d45
--- /dev/null
+++ b/user/gvim/APKBUILD
@@ -0,0 +1,77 @@
+# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
+# Contributor: Łukasz Jendrysik <scadu@yandex.com>
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=gvim
+_pkgreal=vim
+pkgver=8.1.0204
+pkgrel=0
+pkgdesc="advanced text editor"
+url="http://www.vim.org"
+arch="all"
+options="!check" # requires controlling TTY, and fails with musl locales
+license="Vim"
+depends="vim"
+makedepends="acl-dev ncurses-dev libx11-dev perl-dev python3-dev gtk+3.0-dev
+ libice-dev libsm-dev libxpm-dev libxt-dev"
+source="$_pkgreal-$pkgver.tar.gz::https://github.com/$_pkgreal/$_pkgreal/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+# secfixes:
+# 8.0.0329-r0:
+# - CVE-2017-5953
+# 8.0.0056-r0:
+# - CVE-2016-1248
+
+prepare() {
+ cd "$builddir"
+ # Read vimrc from /etc/vim
+ echo '#define SYS_VIMRC_FILE "/etc/vim/vimrc"' >> src/feature.h
+}
+
+build() {
+ local _onlynative
+ cd "$builddir"
+ [ "$CBUILD" != "$CHOST" ] || _onlynative="--enable-perlinterp --enable-python3interp=dynamic"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ $_onlynative \
+ --with-x \
+ --enable-acl \
+ --enable-nls \
+ --enable-multibyte \
+ --enable-gui=gtk3 \
+ --disable-ncurses \
+ --with-compiledby="Adélie Linux" \
+ vim_cv_toupper_broken=no \
+ vim_cv_terminfo=yes \
+ vim_cv_tgent=zero \
+ vim_cv_tty_group=world \
+ vim_cv_getcwd_broken=no \
+ vim_cv_stat_ignores_slash=no \
+ vim_cv_memmove_handles_overlap=yes \
+ STRIP=:
+ make
+}
+
+package() {
+ cd "$builddir"
+
+ install -Dm755 src/vim "$pkgdir"/usr/bin/gvim
+ install -Dm755 src/gvimtutor "$pkgdir"/usr/bin/gvimtutor
+ install -Dm644 runtime/vim16x16.png "$pkgdir"/usr/share/locolor/16x16/apps/gvim.png
+ install -Dm644 runtime/vim32x32.png "$pkgdir"/usr/share/locolor/32x32/apps/gvim.png
+ install -Dm644 runtime/vim48x48.png "$pkgdir"/usr/share/hicolor/48x48/apps/gvim.png
+ install -Dm644 runtime/gvim.desktop "$pkgdir"/usr/share/applications/gvim.desktop
+
+ cd "$pkgdir"/usr/bin
+ ln -s gvim gview
+ ln -s gvim gvimdiff
+ ln -s gvim rgview
+ ln -s gvim rgvim
+}
+
+sha512sums="e2629dc44a9cf6c73b589508c35a7f068fb22ae9f0802dbe7b6efa2b104598e1c1a9c0a8abacc256fee9f72b64a68ab984c443f27c57c8129c2754d49e099587 vim-8.1.0204.tar.gz"