wok-current view wbar/receipt @ rev 24797

updated libhtp and libhtp-dev (0.5.32 -> 0.5.39)
author Hans-G?nter Theisgen
date Mon Mar 21 17:10:45 2022 +0100 (2022-03-21)
parents 8dd8bab3f0ca
children e1e1678c5265
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE/commits/dev-3.0 2>/dev/null | \
22 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 patch -p0 < $stuff/gcc43_fixes.diff || return 1
29 sed -i 's|^LDFLAGS.*|& -lX11|' Makefile
30 make &&
31 mkdir -p $DESTDIR/usr/share/wbar/iconpack $DESTDIR/usr/bin &&
32 cp wbar $DESTDIR/usr/bin &&
33 cp iconpack/wbar.osx/osxbarback.png $DESTDIR/usr/share/wbar/iconpack
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/etc/wbar
40 cp -a $install/usr $fs
41 ln -s /etc/wbar/dot.wbar $fs/usr/share/wbar/dot.wbar
42 touch $fs/etc/wbar/dot.wbar
43 }
45 # Post install/remove commands for Tazpkg.
46 post_install()
47 {
48 rm -f "$1/etc/dot.wbar"
49 [ -s "$1/etc/wbar/dot.wbar" ] || rm -f "$1/etc/wbar/dot.wbar"
50 mv "$1/etc/wbar/dot.wbar" "$1/etc/wbar/dot.wbar.old" 2> /dev/null && cat <<EOT
51 --------
52 Your old wbar configuration is saved into /etc/wbar/dot.wbar.old
53 --------
54 EOT
55 cat > "$1/etc/wbar/dot.wbar" << EOT
56 # The Bar && Font
57 i: /usr/share/wbar/iconpack/osxbarback.png
58 t: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans/12
59 c:
61 EOT
62 while read icon exe text; do
63 [ -x $exe ] || continue
64 cat >> "$1/etc/wbar/dot.wbar" << EOT
65 i: $icon
66 c: $exe
67 t: $text
69 EOT
70 done << EOT
71 /usr/share/pixmaps/firefox.png /usr/bin/firefox firefox
72 /usr/share/pixmaps/pidgin.png /usr/bin/pidgin pidgin
73 /usr/share/pixmaps/gimp.png /usr/bin/gimp gimp
74 /usr/share/pixmaps/alsaplayer.png /usr/bin/alsaplayer alsaplayer
75 /usr/share/pixmaps/xterm.png /usr/bin/xterm xterm
76 /usr/share/pixmaps/leafpad.png /usr/bin/leafpad leafpad
77 EOT
78 grep -q 'wbar' "$1/etc/xdg/openbox/autostart.sh" ||
79 cat >> "$1/etc/xdg/openbox/autostart.sh" << EOT
81 # Wbar icons panel.
82 (sleep 2 && wbar -above-desk -pos top center -jumpf 0 -zoomf 1.5 -bpress -balfa 0) &
83 EOT
84 }
86 post_remove()
87 {
88 sed -i '/Wbar/ d' "$1/etc/xdg/openbox/autostart.sh"
89 sed -i '/wbar/ d' "$1/etc/xdg/openbox/autostart.sh"
90 }