wok-next view wbar/receipt @ rev 7268
Added stella. A multi-platform Atari 2600 VCS emulator.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Nov 14 20:55:00 2010 +0000 (2010-11-14) |
parents | 35ec83c60e58 |
children | 0b4cf0d9e1b5 |
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 gcc-lib-base"
12 BUILD_DEPENDS="imlib2-dev"
13 CONFIG_FILES="/etc/wbar/dot.wbar"
14 TAGS="desktop launchbar"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 patch -p0 < ../stuff/gcc43_fixes.diff || exit 1
21 make &&
22 mkdir -p _pkg/usr/share/wbar/iconpack _pkg/usr/bin &&
23 cp wbar _pkg/usr/bin &&
24 cp iconpack/wbar.osx/osxbarback.png _pkg/usr/share/wbar/iconpack
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/etc/wbar
31 cp -a $_pkg/usr $fs
32 ln -s /etc/wbar/dot.wbar $fs/usr/share/wbar/dot.wbar
33 touch $fs/etc/wbar/dot.wbar
34 }
36 # Post install/remove commands for Tazpkg.
37 post_install()
38 {
39 rm -f $1/etc/dot.wbar
40 [ -s $1/etc/wbar/dot.wbar ] || rm -f $1/etc/wbar/dot.wbar
41 mv $1/etc/wbar/dot.wbar $1/etc/wbar/dot.wbar.old 2> /dev/null && cat <<EOT
42 --------
43 Your old wbar configuration is saved into /etc/wbar/dot.wbar.old
44 --------
45 EOT
46 cat > $1/etc/wbar/dot.wbar << EOT
47 # The Bar && Font
48 i: /usr/share/wbar/iconpack/osxbarback.png
49 t: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans/12
50 c:
52 EOT
53 while read icon exe text; do
54 [ -x $exe ] || continue
55 cat >> $1/etc/wbar/dot.wbar << EOT
56 i: $icon
57 c: $exe
58 t: $text
60 EOT
61 done << EOT
62 /usr/share/pixmaps/firefox.png /usr/bin/firefox firefox
63 /usr/share/pixmaps/pidgin.png /usr/bin/pidgin pidgin
64 /usr/share/pixmaps/gimp.png /usr/bin/gimp gimp
65 /usr/share/pixmaps/alsaplayer.png /usr/bin/alsaplayer alsaplayer
66 /usr/share/pixmaps/xterm.png /usr/bin/xterm xterm
67 /usr/share/pixmaps/leafpad.png /usr/bin/leafpad leafpad
68 EOT
69 grep -q 'wbar' $1/etc/xdg/openbox/autostart.sh ||
70 cat >> $1/etc/xdg/openbox/autostart.sh << EOT
72 # Wbar icons panel.
73 (sleep 2 && wbar -above-desk -pos top center -jumpf 0 -zoomf 1.5 -bpress -balfa 0) &
74 EOT
75 }
77 post_remove()
78 {
79 sed -i '/Wbar/ d' $1/etc/xdg/openbox/autostart.sh
80 sed -i '/wbar/ d' $1/etc/xdg/openbox/autostart.sh
81 }