wok-current rev 9104

Up: tmux 1.4, including various fixes
author Antoine Bodin <gokhlayeh@slitaz.org>
date Fri Mar 04 15:13:57 2011 +0100 (2011-03-04)
parents f256feada564
children 80924f9b7f98
files tmux/receipt
line diff
     1.1 --- a/tmux/receipt	Fri Mar 04 14:56:49 2011 +0100
     1.2 +++ b/tmux/receipt	Fri Mar 04 15:13:57 2011 +0100
     1.3 @@ -1,12 +1,11 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="tmux"
     1.7 -VERSION="1.3"
     1.8 +VERSION="1.4"
     1.9  CATEGORY="utilities"
    1.10  SHORT_DESC="Terminal multiplexer."
    1.11  MAINTAINER="paul@slitaz.org"
    1.12 -DEPENDS="ncurses libevent"
    1.13 -BUILD_DEPENDS="ncurses-dev libevent libevent-dev"
    1.14 +DEPENDS="ncursesw libevent"
    1.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16  WEB_SITE="http://tmux.sourceforge.net/"
    1.17  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.18 @@ -16,21 +15,26 @@
    1.19  {
    1.20  	cd $src
    1.21  
    1.22 -	# hack GNUmakefile
    1.23 -	sed -i 's/install -g bin/install -g root/g' GNUmakefile
    1.24 -
    1.25 -	./configure \
    1.26 -		--prefix=/usr # not working?
    1.27 -	make && make DESTDIR=$PWD/_pkg install
    1.28 +	./configure &&
    1.29 +	make PREFIX=/usr &&
    1.30 +	make PREFIX=/usr install &&
    1.31 +	install -dm755 "$DESTDIR/usr/share/tmux/" &&
    1.32 +	install -m644 examples/* "$DESTDIR/usr/share/tmux/"
    1.33  }
    1.34  
    1.35  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.36  genpkg_rules()
    1.37  {
    1.38 -	mkdir -p $fs/usr/share/tmux
    1.39 -	cp -a $_pkg/usr/local/bin $fs/usr
    1.40 +	mkdir -p $fs/usr/share/terminfo/s/
    1.41 +	cp -a $_pkg/usr/bin $fs/usr
    1.42  
    1.43  	# copy sample configs
    1.44 -	cp -a $src/examples $fs/usr/share/tmux
    1.45 +	cp -a $_pkg/usr/share/tmux $fs/usr/share
    1.46 +
    1.47 +	# Get screen terminfo datas.
    1.48 +	tazpkg get-install ncursesw-extra --root=$src/ncursesw-extra
    1.49 +	cp -a $src/ncursesw-extra/usr/share/terminfo/s/screen \
    1.50 +	$fs/usr/share/terminfo/s/
    1.51 +	rm -r $src/ncursesw-extra
    1.52  }
    1.53