wok-6.x diff wbar/receipt @ rev 2908

Up: ffmpeg, ffmpeg-dev for mplayer-svn and improve kino hack
author Rohit Joshi <jozee@slitaz.org>
date Wed May 06 13:09:23 2009 +0000 (2009-05-06)
parents
children 4f6c9d697c58
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/wbar/receipt	Wed May 06 13:09:23 2009 +0000
     1.3 @@ -0,0 +1,71 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="wbar"
     1.7 +VERSION="1.3.3"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Quick launch bar."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tbz2"
    1.12 +WEB_SITE="http://code.google.com/p/wbar/"
    1.13 +WGET_URL="http://www.tecapli.com.ar/warlock/$TARBALL"
    1.14 +DEPENDS="imlib2 ttf-dejavu"
    1.15 +BUILD_DEPENDS="imlib2-dev imagemagick"
    1.16 +CONFIG_FILES="/etc/dot.wbar"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	make
    1.23 +	mkdir -p _pkg/usr/share/wbar/iconpack _pkg/usr/bin
    1.24 +	cp wbar _pkg/usr/bin
    1.25 +	cp iconpack/wbar.osx/osxbarback.png _pkg/usr/share/wbar/iconpack
    1.26 +	for i in firefox psi gimp xmms ; do
    1.27 +		convert iconpack/wbar.osx/$i.png -resize 48x48 \
    1.28 +			_pkg/usr/share/wbar/iconpack/$i.png
    1.29 +	done
    1.30 +	cp ../stuff/*.png _pkg/usr/share/wbar/iconpack
    1.31 +}
    1.32 +
    1.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 +genpkg_rules()
    1.35 +{
    1.36 +	mkdir -p $fs/etc
    1.37 +	cp -a $_pkg/usr $fs
    1.38 +	ln -s /etc/dot.wbar $fs/usr/share/wbar/dot.wbar
    1.39 +	touch $fs/etc/dot.wbar	
    1.40 +}
    1.41 +
    1.42 +# Post install/remove commands for Tazpkg.
    1.43 +post_install()
    1.44 +{
    1.45 +	[ -s $1/etc/dot.wbar ] || rm -f $1/etc/dot.wbar
    1.46 +	mv $1/etc/dot.wbar $1/etc/dot.wbar.old 2> /dev/null && cat <<EOT
    1.47 +--------
    1.48 +Your old wbar configuration is saved into /etc/dot.wbar.old
    1.49 +--------
    1.50 +EOT
    1.51 +	cat > $1/etc/dot.wbar << EOT
    1.52 +# The Bar && Font
    1.53 +i: /usr/share/wbar/iconpack/osxbarback.png
    1.54 +t: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans/12
    1.55 +c:
    1.56 +
    1.57 +EOT
    1.58 +	while read icon exe text; do
    1.59 +		[ -x $exe ] || continue
    1.60 +		cat >> $1/etc/dot.wbar << EOT
    1.61 +i: $icon
    1.62 +c: $exe
    1.63 +t: $text
    1.64 +
    1.65 +EOT
    1.66 +	done << EOT
    1.67 +/usr/share/wbar/iconpack/firefox.png /usr/bin/firefox firefox
    1.68 +/usr/share/wbar/iconpack/psi.png /usr/bin/pidgin pidgin
    1.69 +/usr/share/wbar/iconpack/gimp.png /usr/bin/gimp gimp
    1.70 +/usr/share/wbar/iconpack/xmms.png /usr/bin/audacious audacious
    1.71 +/usr/share/wbar/iconpack/xterm.png /usr/bin/xterm xterm
    1.72 +EOT
    1.73 +	[ -n "$1" ] || wbar -above-desk -pos top &
    1.74 +}