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