Commit db710dfa authored by Milan P. Stanić's avatar Milan P. Stanić
Browse files

main/vim: split gvim to separate package

split gvim subpackage and move it to community
this way we will have less packages in main which depends on gtk+
parent fd00fe2f
......@@ -4,15 +4,15 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vim
pkgver=8.2.3437
pkgrel=0
pkgrel=1
pkgdesc="Improved vi-style text editor"
url="https://www.vim.org/"
arch="all"
license="Vim"
options="!check" # some tests are failing
depends="xxd"
makedepends="ncurses-dev lua5.3-dev python3-dev gtk+3.0-dev libx11-dev libxt-dev"
subpackages="$pkgname-doc ${pkgname}diff::noarch $pkgname-tutor $pkgname-help gvim xxd"
makedepends="ncurses-dev lua5.3-dev python3-dev"
subpackages="$pkgname-doc ${pkgname}diff::noarch $pkgname-tutor $pkgname-help xxd"
source="$pkgname-$pkgver.tar.gz::https://github.com/vim/vim/archive/v$pkgver.tar.gz
vimrc
"
......@@ -35,7 +35,6 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/vim/vim/archive/v$pkgver.tar
prepare() {
# Read vimrc from /etc/vim
echo '#define SYS_VIMRC_FILE "/etc/vim/vimrc"' >> src/feature.h
cp -r "$builddir" "$builddir"-gvim
default_prepare
}
......@@ -53,20 +52,6 @@ build() {
--with-lua-prefix=/usr/lua5.3 \
--with-compiledby="Alpine Linux"
make
cd "$builddir"-gvim
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-luainterp \
--enable-python3interp=dynamic \
--with-x \
--disable-nls \
--enable-multibyte \
--enable-gui=gtk3 \
--with-lua-prefix=/usr/lua5.3 \
--with-compiledby="Alpine Linux"
make
}
check() {
......@@ -81,19 +66,6 @@ package() {
install -Dm644 "$srcdir"/vimrc "$pkgdir"/etc/vim/vimrc
}
gvim() {
pkgdesc="advanced text editor, with GUI"
provides="vim"
cd "$builddir"-gvim
make -j1 DESTDIR="$subpkgdir/" install
install -Dm644 runtime/doc/uganda.txt \
"$subpkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "$srcdir"/vimrc "$subpkgdir"/etc/vim/vimrc
rm -rf "$subpkgdir"/usr/share/man
rm "$subpkgdir/usr/bin/xxd"
}
vimdiff() {
pkgdesc="view file diffs in vim"
depends="diffutils vim"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment