From beab3433a3a1aecbe9e8c92db554700292c447b6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 11 Feb 2011 20:28:41 +0100 Subject: [PATCH] Added tmux-1.4 build template. --- srcpkgs/tmux/template | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 srcpkgs/tmux/template diff --git a/srcpkgs/tmux/template b/srcpkgs/tmux/template new file mode 100644 index 00000000000..ea15ebeb6b4 --- /dev/null +++ b/srcpkgs/tmux/template @@ -0,0 +1,33 @@ +# 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 " +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 +}