wok-6.x annotate avant-window-navigator/receipt @ rev 13827
bastet: fix log output
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 07 11:31:45 2013 +0100 (2013-01-07) |
parents | c359aaa7c2a8 |
children | 380ffe05937a |
rev | line source |
---|---|
pascal@11216 | 1 # SliTaz package receipt. |
pascal@11216 | 2 |
pascal@11216 | 3 PACKAGE="avant-window-navigator" |
pascal@11216 | 4 VERSION="0.4.0" |
pascal@11216 | 5 CATEGORY="x-window" |
pascal@11216 | 6 SHORT_DESC="Dock-like bar which sits at the bottom of the screen." |
pascal@11216 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@11216 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@11216 | 9 WEB_SITE="https://launchpad.net/awn/" |
pascal@11216 | 10 WGET_URL="http://launchpad.net/awn/0.4/$VERSION/+download/$TARBALL" |
pascal@11216 | 11 TAGS="window-manager wm panel" |
pascal@11216 | 12 |
pankso@12552 | 13 DEPENDS="acl dbus dbus-glib librsvg libwnck xorg-xcompmgr libgtop \ |
pankso@12552 | 14 libdesktop-agnostic" |
pankso@12552 | 15 BUILD_DEPENDS="dbus-dev librsvg-dev libwnck-dev pygtk-dev xcb-util-dev \ |
pankso@12552 | 16 libxcb-dev startup-notification-dev pycairo-dev pygobject-dev libffi-dev \ |
pankso@12552 | 17 python-xdg intltool acl-dev dbus-dev dbus-glib-dev python-dev \ |
pankso@12553 | 18 libdesktop-agnostic-dev libgtop-dev GConf-dev" |
pankso@12552 | 19 |
pascal@11216 | 20 # Rules to configure and make the package. |
pascal@11216 | 21 compile_rules() |
pascal@11216 | 22 { |
pascal@12651 | 23 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@12651 | 24 export LDFLAGS="-Wl,--copy-dt-needed-entries" |
pascal@12651 | 25 |
pascal@11216 | 26 cd $src |
pascal@11216 | 27 ./configure \ |
pascal@11216 | 28 --prefix=/usr \ |
pascal@11216 | 29 --sysconfdir=/etc \ |
pascal@11216 | 30 --with-desktop=agnostic \ |
pascal@11216 | 31 $CONFIGURE_ARGS && |
pascal@11216 | 32 make && |
pascal@11216 | 33 make DESTDIR=$DESTDIR install |
pascal@11216 | 34 } |
pascal@11216 | 35 |
pascal@11216 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11216 | 37 genpkg_rules() |
pascal@11216 | 38 { |
pascal@11216 | 39 mkdir -p $fs/usr/lib $fs/usr/share |
pascal@11216 | 40 cp -a $_pkg/usr/bin $fs/usr |
pascal@11216 | 41 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pascal@11216 | 42 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share |
pascal@11216 | 43 cp -a $_pkg/usr/share/applications $fs/usr/share |
pascal@11216 | 44 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps \ |
pascal@11216 | 45 $fs/usr/share/pixmaps |
pascal@11216 | 46 # Custom autostart script so we ensure xcompmgr is also started. |
pascal@11216 | 47 cat > $fs/usr/bin/awn-autostart << _EOT_ |
pascal@11216 | 48 #!/bin/sh |
pascal@11216 | 49 xcompmgr & |
pascal@11216 | 50 sleep 4 && avant-window-navigator |
pascal@11216 | 51 _EOT_ |
pascal@11216 | 52 |
pascal@11216 | 53 # split awn-manager |
pascal@11216 | 54 rm -f $fs/usr/bin/awn-manager |
pascal@11216 | 55 rm -rf $fs/usr/share/$PACKAGE/awn-manager |
pascal@11216 | 56 rm -f $fs/usr/share/applications/awn-manager.desktop |
pascal@11216 | 57 |
pascal@11216 | 58 # fix permissions |
pascal@11216 | 59 chmod +x $fs/usr/bin/* |
pascal@11216 | 60 |
pascal@11216 | 61 # Fix missing icon |
pascal@11216 | 62 cd $fs/usr/share/pixmaps |
pascal@11216 | 63 ln -s avant-window-navigator.png awn-manager.png |
pascal@11216 | 64 |
pascal@11216 | 65 |
pascal@11216 | 66 } |
pascal@11216 | 67 |
pascal@11216 | 68 post_install() |
pascal@11216 | 69 { |
pascal@11216 | 70 # ln missing icons |
pascal@11216 | 71 ln -sf $1/usr/share/icons/SliTaz/16x16/actions/go-up.png $1/usr/share/icons/SliTaz/16x16/actions/gtk-sort-ascending.png |
pascal@11216 | 72 ln -sf $1/usr/share/icons/SliTaz/16x16/actions/go-down.png $1/usr/share/icons/SliTaz/16x16/actions/gtk-sort-descending.png |
pascal@11216 | 73 } |