wok view wbar/receipt @ rev 22251
updated xorg-xcompmgr (1.1.6 -> 1.1.8)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Nov 12 16:53:09 2019 +0100 (2019-11-12) |
parents | 9e01bc6321ea |
children | 34e801e0eb52 |
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 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION.tbz2"
10 WEB_SITE="https://github.com/rodolf0/wbar"
11 WGET_URL="http://www.tecapli.com.ar/warlock/$TARBALL"
12 CONFIG_FILES="/etc/wbar/dot.wbar"
13 TAGS="desktop launchbar"
15 DEPENDS="imlib2 ttf-dejavu gcc-lib-base"
16 BUILD_DEPENDS="imlib2-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 patch -p0 < $stuff/gcc43_fixes.diff || return 1
22 sed -i 's|^LDFLAGS.*|& -lX11|' Makefile
23 make &&
24 mkdir -p $DESTDIR/usr/share/wbar/iconpack $DESTDIR/usr/bin &&
25 cp wbar $DESTDIR/usr/bin &&
26 cp iconpack/wbar.osx/osxbarback.png $DESTDIR/usr/share/wbar/iconpack
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/etc/wbar
33 cp -a $install/usr $fs
34 ln -s /etc/wbar/dot.wbar $fs/usr/share/wbar/dot.wbar
35 touch $fs/etc/wbar/dot.wbar
36 }
38 # Post install/remove commands for Tazpkg.
39 post_install()
40 {
41 rm -f "$1/etc/dot.wbar"
42 [ -s "$1/etc/wbar/dot.wbar" ] || rm -f "$1/etc/wbar/dot.wbar"
43 mv "$1/etc/wbar/dot.wbar" "$1/etc/wbar/dot.wbar.old" 2> /dev/null && cat <<EOT
44 --------
45 Your old wbar configuration is saved into /etc/wbar/dot.wbar.old
46 --------
47 EOT
48 cat > "$1/etc/wbar/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/wbar/dot.wbar" << EOT
58 i: $icon
59 c: $exe
60 t: $text
62 EOT
63 done << EOT
64 /usr/share/pixmaps/firefox.png /usr/bin/firefox firefox
65 /usr/share/pixmaps/pidgin.png /usr/bin/pidgin pidgin
66 /usr/share/pixmaps/gimp.png /usr/bin/gimp gimp
67 /usr/share/pixmaps/alsaplayer.png /usr/bin/alsaplayer alsaplayer
68 /usr/share/pixmaps/xterm.png /usr/bin/xterm xterm
69 /usr/share/pixmaps/leafpad.png /usr/bin/leafpad leafpad
70 EOT
71 grep -q 'wbar' "$1/etc/xdg/openbox/autostart.sh" ||
72 cat >> "$1/etc/xdg/openbox/autostart.sh" << EOT
74 # Wbar icons panel.
75 (sleep 2 && wbar -above-desk -pos top center -jumpf 0 -zoomf 1.5 -bpress -balfa 0) &
76 EOT
77 }
79 post_remove()
80 {
81 sed -i '/Wbar/ d' "$1/etc/xdg/openbox/autostart.sh"
82 sed -i '/wbar/ d' "$1/etc/xdg/openbox/autostart.sh"
83 }