wok annotate wbar/receipt @ rev 18512
wxWidgets: up(3.0.2)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Oct 24 04:19:35 2015 +0300 (2015-10-24) |
parents | 2a21689b0af7 |
children | 9e01bc6321ea |
rev | line source |
---|---|
pascal@2819 | 1 # SliTaz package receipt. |
pascal@2819 | 2 |
pascal@2819 | 3 PACKAGE="wbar" |
pascal@2819 | 4 VERSION="1.3.3" |
pascal@2819 | 5 CATEGORY="system-tools" |
pascal@2819 | 6 SHORT_DESC="Quick launch bar." |
pascal@2819 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15363 | 8 LICENSE="GPL" |
pascal@2819 | 9 TARBALL="$PACKAGE-$VERSION.tbz2" |
pascal@2819 | 10 WEB_SITE="http://code.google.com/p/wbar/" |
pascal@2819 | 11 WGET_URL="http://www.tecapli.com.ar/warlock/$TARBALL" |
erjo@9956 | 12 CONFIG_FILES="/etc/wbar/dot.wbar" |
erjo@9956 | 13 TAGS="desktop launchbar" |
erjo@9956 | 14 |
pascal@5007 | 15 DEPENDS="imlib2 ttf-dejavu gcc-lib-base" |
pankso@3094 | 16 BUILD_DEPENDS="imlib2-dev" |
pascal@2819 | 17 |
pascal@2819 | 18 # Rules to configure and make the package. |
pascal@2819 | 19 compile_rules() |
pascal@2819 | 20 { |
pascal@8974 | 21 patch -p0 < $stuff/gcc43_fixes.diff || return 1 |
pascal@17759 | 22 sed -i 's|^LDFLAGS.*|& -lX11|' Makefile |
pankso@3094 | 23 make && |
pascal@15363 | 24 mkdir -p $DESTDIR/usr/share/wbar/iconpack $DESTDIR/usr/bin && |
pascal@15363 | 25 cp wbar $DESTDIR/usr/bin && |
pascal@15363 | 26 cp iconpack/wbar.osx/osxbarback.png $DESTDIR/usr/share/wbar/iconpack |
pascal@2819 | 27 } |
pascal@2819 | 28 |
pascal@2819 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2819 | 30 genpkg_rules() |
pascal@2819 | 31 { |
pankso@3094 | 32 mkdir -p $fs/etc/wbar |
pascal@15363 | 33 cp -a $install/usr $fs |
pankso@3094 | 34 ln -s /etc/wbar/dot.wbar $fs/usr/share/wbar/dot.wbar |
pankso@3094 | 35 touch $fs/etc/wbar/dot.wbar |
pascal@2819 | 36 } |
pascal@2819 | 37 |
pascal@2819 | 38 # Post install/remove commands for Tazpkg. |
pascal@2819 | 39 post_install() |
pascal@2819 | 40 { |
pankso@3094 | 41 rm -f $1/etc/dot.wbar |
pankso@3094 | 42 [ -s $1/etc/wbar/dot.wbar ] || rm -f $1/etc/wbar/dot.wbar |
pankso@3094 | 43 mv $1/etc/wbar/dot.wbar $1/etc/wbar/dot.wbar.old 2> /dev/null && cat <<EOT |
pascal@2819 | 44 -------- |
pankso@3094 | 45 Your old wbar configuration is saved into /etc/wbar/dot.wbar.old |
pascal@2819 | 46 -------- |
pascal@2819 | 47 EOT |
pankso@3094 | 48 cat > $1/etc/wbar/dot.wbar << EOT |
pascal@2819 | 49 # The Bar && Font |
pascal@2819 | 50 i: /usr/share/wbar/iconpack/osxbarback.png |
pascal@2819 | 51 t: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans/12 |
pascal@2819 | 52 c: |
pascal@2819 | 53 |
pascal@2819 | 54 EOT |
pascal@2819 | 55 while read icon exe text; do |
pascal@2819 | 56 [ -x $exe ] || continue |
pankso@3094 | 57 cat >> $1/etc/wbar/dot.wbar << EOT |
pascal@2819 | 58 i: $icon |
pascal@2819 | 59 c: $exe |
pascal@2819 | 60 t: $text |
pascal@2819 | 61 |
pascal@2819 | 62 EOT |
pascal@2819 | 63 done << EOT |
pankso@3094 | 64 /usr/share/pixmaps/firefox.png /usr/bin/firefox firefox |
pankso@3094 | 65 /usr/share/pixmaps/pidgin.png /usr/bin/pidgin pidgin |
pankso@3094 | 66 /usr/share/pixmaps/gimp.png /usr/bin/gimp gimp |
pankso@3094 | 67 /usr/share/pixmaps/alsaplayer.png /usr/bin/alsaplayer alsaplayer |
pankso@3094 | 68 /usr/share/pixmaps/xterm.png /usr/bin/xterm xterm |
pankso@3094 | 69 /usr/share/pixmaps/leafpad.png /usr/bin/leafpad leafpad |
pascal@2819 | 70 EOT |
pankso@3094 | 71 grep -q 'wbar' $1/etc/xdg/openbox/autostart.sh || |
pankso@3094 | 72 cat >> $1/etc/xdg/openbox/autostart.sh << EOT |
pankso@3094 | 73 |
pankso@3094 | 74 # Wbar icons panel. |
pankso@3094 | 75 (sleep 2 && wbar -above-desk -pos top center -jumpf 0 -zoomf 1.5 -bpress -balfa 0) & |
pankso@3094 | 76 EOT |
pascal@2819 | 77 } |
pankso@3094 | 78 |
pankso@3094 | 79 post_remove() |
pankso@3094 | 80 { |
pankso@3094 | 81 sed -i '/Wbar/ d' $1/etc/xdg/openbox/autostart.sh |
pankso@3094 | 82 sed -i '/wbar/ d' $1/etc/xdg/openbox/autostart.sh |
pankso@3094 | 83 } |