#Packager: Frédéric GALUSIK <fredg~AT~salixos~dot~org>

pkgname=tmux
pkgver=1.6
pkgrel=1rl
#arch=noarch
source=(http://downloads.sourceforge.net/tmux/tmux-$pkgver.tar.gz)
sourcetemplate=http://people.salixos.org/fredg/$pkgname/$pkgver/
url=http://tmux.sourceforge.net

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"tmux (A terminal multiplexer)"
"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."
)


build() {
	cd $SRC/$pkgname-$pkgver
	./configure --prefix=/usr \
                --libdir=/usr/lib${LIBDIRSUFFIX} \
                --localstatedir=/var \
                --sysconfdir=/etc \
                --docdir=/usr/doc/$pkgname-$pkgver \
                --build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$PKG

	# add examples/ to the doc dir
	mkdir -p $PKG/usr/doc/$pkgname-$pkgver
	cp -Rf $SRC/$pkgname-$pkgver/examples \
		$PKG/usr/doc/$pkgname-$pkgver/
}