wok-6.x view wbar/receipt @ rev 12111
Up tazpanel 1.4.5
author | Christian Mesh meshca@clarkson.edu |
---|---|
date | Mon Mar 12 16:56:56 2012 +0000 (2012-03-12) |
parents | 940b5937e496 |
children | 2a21689b0af7 |
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 CONFIG_FILES="/etc/wbar/dot.wbar"
12 TAGS="desktop launchbar"
14 DEPENDS="imlib2 ttf-dejavu gcc-lib-base"
15 BUILD_DEPENDS="imlib2-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 patch -p0 < $stuff/gcc43_fixes.diff || return 1
22 make &&
23 mkdir -p _pkg/usr/share/wbar/iconpack _pkg/usr/bin &&
24 cp wbar _pkg/usr/bin &&
25 cp iconpack/wbar.osx/osxbarback.png _pkg/usr/share/wbar/iconpack
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/etc/wbar
32 cp -a $_pkg/usr $fs
33 ln -s /etc/wbar/dot.wbar $fs/usr/share/wbar/dot.wbar
34 touch $fs/etc/wbar/dot.wbar
35 }
37 # Post install/remove commands for Tazpkg.
38 post_install()
39 {
40 rm -f $1/etc/dot.wbar
41 [ -s $1/etc/wbar/dot.wbar ] || rm -f $1/etc/wbar/dot.wbar
42 mv $1/etc/wbar/dot.wbar $1/etc/wbar/dot.wbar.old 2> /dev/null && cat <<EOT
43 --------
44 Your old wbar configuration is saved into /etc/wbar/dot.wbar.old
45 --------
46 EOT
47 cat > $1/etc/wbar/dot.wbar << EOT
48 # The Bar && Font
49 i: /usr/share/wbar/iconpack/osxbarback.png
50 t: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans/12
51 c:
53 EOT
54 while read icon exe text; do
55 [ -x $exe ] || continue
56 cat >> $1/etc/wbar/dot.wbar << EOT
57 i: $icon
58 c: $exe
59 t: $text
61 EOT
62 done << EOT
63 /usr/share/pixmaps/firefox.png /usr/bin/firefox firefox
64 /usr/share/pixmaps/pidgin.png /usr/bin/pidgin pidgin
65 /usr/share/pixmaps/gimp.png /usr/bin/gimp gimp
66 /usr/share/pixmaps/alsaplayer.png /usr/bin/alsaplayer alsaplayer
67 /usr/share/pixmaps/xterm.png /usr/bin/xterm xterm
68 /usr/share/pixmaps/leafpad.png /usr/bin/leafpad leafpad
69 EOT
70 grep -q 'wbar' $1/etc/xdg/openbox/autostart.sh ||
71 cat >> $1/etc/xdg/openbox/autostart.sh << EOT
73 # Wbar icons panel.
74 (sleep 2 && wbar -above-desk -pos top center -jumpf 0 -zoomf 1.5 -bpress -balfa 0) &
75 EOT
76 }
78 post_remove()
79 {
80 sed -i '/Wbar/ d' $1/etc/xdg/openbox/autostart.sh
81 sed -i '/wbar/ d' $1/etc/xdg/openbox/autostart.sh
82 }