mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
main/tmux: add vim subpackage
This commit is contained in:
parent
be15bb0f65
commit
b3832efdbd
@ -2,7 +2,7 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=tmux
|
||||
pkgver=2.0
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Tool to control multiple terminals from a single terminal"
|
||||
url="http://tmux.sourceforge.net/"
|
||||
arch="all"
|
||||
@ -10,7 +10,10 @@ license="BSD"
|
||||
depends="ncurses-terminfo"
|
||||
makedepends="ncurses-dev libevent-dev autoconf automake bsd-compat-headers"
|
||||
install=
|
||||
subpackages="$pkgname-doc $pkgname-bash-completion:completion"
|
||||
subpackages="
|
||||
$pkgname-doc
|
||||
$pkgname-vim:vim
|
||||
$pkgname-bash-completion:completion"
|
||||
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
|
||||
|
||||
_builddir="$srcdir/$pkgname-$pkgver"
|
||||
@ -39,9 +42,18 @@ package() {
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
}
|
||||
|
||||
vim() {
|
||||
depends=""
|
||||
pkgdesc="Vim syntax for $pkgname"
|
||||
arch="noarch"
|
||||
|
||||
install -Dm644 "$_builddir"/examples/$pkgname.vim \
|
||||
"$subpkgdir"/usr/share/vim/vimfiles/syntax/$pkgname.vim
|
||||
}
|
||||
|
||||
completion() {
|
||||
depends=""
|
||||
pkgdesc="Bash completion script for tmux"
|
||||
pkgdesc="Bash completion script for $pkgname"
|
||||
arch="noarch"
|
||||
|
||||
install -Dm644 "$srcdir"/tmux-$pkgver/examples/bash_completion_tmux.sh \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user