void-packages/srcpkgs/tmux/template

34 lines
1017 B
Plaintext

# Template file for 'tmux'
pkgname=tmux
version=1.4
distfiles="${SOURCEFORGE_SITE}/tmux/tmux-$version.tar.gz"
build_style=custom-install
short_desc="Terminal Multiplexer"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=c7e005f32e256b8ece214b71c51947f4081af8c5f0400083e4adaac2c258bbc7
long_desc="
tmux is a terminal multiplexer: it enables a number of terminals (or windows),
each running a separate program, to be created, accessed, and controlled from
a single screen. tmux may be detached from a screen and continue running in
the background, then later reattached."
Add_dependency run glibc
Add_dependency run ncursesw
Add_dependency run libevent
Add_dependency build ncursesw-devel
Add_dependency build libevent-devel
do_build()
{
sed -i -e "s|-lncurses|-lncursesw|g" configure
./configure && make ${makejobs} PREFIX=/usr
}
do_install()
{
make PREFIX=/usr DESTDIR=${DESTDIR} install
install -d ${DESTDIR}/usr/share/man
mv ${DESTDIR}/usr/man/man1 ${DESTDIR}/usr/share/man
rmdir ${DESTDIR}/usr/man
}