wok view wbar/receipt @ rev 3001

Up: alsa* (1.0.20)
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 11 21:51:38 2009 +0200 (2009-05-11)
parents
children 4f6c9d697c58
line source
1 # SliTaz package receipt.
3 PACKAGE="wbar"
4 VERSION="1.3.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Quick launch bar."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tbz2"
9 WEB_SITE="http://code.google.com/p/wbar/"
10 WGET_URL="http://www.tecapli.com.ar/warlock/$TARBALL"
11 DEPENDS="imlib2 ttf-dejavu"
12 BUILD_DEPENDS="imlib2-dev imagemagick"
13 CONFIG_FILES="/etc/dot.wbar"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 make
20 mkdir -p _pkg/usr/share/wbar/iconpack _pkg/usr/bin
21 cp wbar _pkg/usr/bin
22 cp iconpack/wbar.osx/osxbarback.png _pkg/usr/share/wbar/iconpack
23 for i in firefox psi gimp xmms ; do
24 convert iconpack/wbar.osx/$i.png -resize 48x48 \
25 _pkg/usr/share/wbar/iconpack/$i.png
26 done
27 cp ../stuff/*.png _pkg/usr/share/wbar/iconpack
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/etc
34 cp -a $_pkg/usr $fs
35 ln -s /etc/dot.wbar $fs/usr/share/wbar/dot.wbar
36 touch $fs/etc/dot.wbar
37 }
39 # Post install/remove commands for Tazpkg.
40 post_install()
41 {
42 [ -s $1/etc/dot.wbar ] || rm -f $1/etc/dot.wbar
43 mv $1/etc/dot.wbar $1/etc/dot.wbar.old 2> /dev/null && cat <<EOT
44 --------
45 Your old wbar configuration is saved into /etc/dot.wbar.old
46 --------
47 EOT
48 cat > $1/etc/dot.wbar << EOT
49 # The Bar && Font
50 i: /usr/share/wbar/iconpack/osxbarback.png
51 t: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans/12
52 c:
54 EOT
55 while read icon exe text; do
56 [ -x $exe ] || continue
57 cat >> $1/etc/dot.wbar << EOT
58 i: $icon
59 c: $exe
60 t: $text
62 EOT
63 done << EOT
64 /usr/share/wbar/iconpack/firefox.png /usr/bin/firefox firefox
65 /usr/share/wbar/iconpack/psi.png /usr/bin/pidgin pidgin
66 /usr/share/wbar/iconpack/gimp.png /usr/bin/gimp gimp
67 /usr/share/wbar/iconpack/xmms.png /usr/bin/audacious audacious
68 /usr/share/wbar/iconpack/xterm.png /usr/bin/xterm xterm
69 EOT
70 [ -n "$1" ] || wbar -above-desk -pos top &
71 }