wok-current annotate avant-window-navigator/receipt @ rev 12002

clex: new icon
author Samuel Trassare <samuel_trassare@yahoo.com>
date Mon Mar 05 08:55:01 2012 -0800 (2012-03-05)
parents
children 8cc1b222fdd5
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 DEPENDS="dbus librsvg libwnck xorg-xcompmgr libgtop"
pascal@11216 9 BUILD_DEPENDS="dbus-dev librsvg-dev libwnck libwnck-dev pygtk-dev xcb-util-dev \
pascal@11216 10 libxcb-dev startup-notification-dev pycairo-dev pygobject-dev libffi-dev \
pascal@11216 11 python-xdg intltool acl dbus-glib-dev python-dev libdesktop-agnostic-dev \
pascal@11216 12 GConf libgtop-dev"
pascal@11216 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11216 14 WEB_SITE="https://launchpad.net/awn/"
pascal@11216 15 WGET_URL="http://launchpad.net/awn/0.4/$VERSION/+download/$TARBALL"
pascal@11216 16 TAGS="window-manager wm panel"
pascal@11216 17
pascal@11216 18 # Rules to configure and make the package.
pascal@11216 19 compile_rules()
pascal@11216 20 {
pascal@11216 21 cd $src
pascal@11216 22 ./configure \
pascal@11216 23 --prefix=/usr \
pascal@11216 24 --sysconfdir=/etc \
pascal@11216 25 --with-desktop=agnostic \
pascal@11216 26 $CONFIGURE_ARGS &&
pascal@11216 27 make &&
pascal@11216 28 make DESTDIR=$DESTDIR install
pascal@11216 29 }
pascal@11216 30
pascal@11216 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11216 32 genpkg_rules()
pascal@11216 33 {
pascal@11216 34 mkdir -p $fs/usr/lib $fs/usr/share
pascal@11216 35 cp -a $_pkg/usr/bin $fs/usr
pascal@11216 36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pascal@11216 37 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
pascal@11216 38 cp -a $_pkg/usr/share/applications $fs/usr/share
pascal@11216 39 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps \
pascal@11216 40 $fs/usr/share/pixmaps
pascal@11216 41 # Custom autostart script so we ensure xcompmgr is also started.
pascal@11216 42 cat > $fs/usr/bin/awn-autostart << _EOT_
pascal@11216 43 #!/bin/sh
pascal@11216 44 xcompmgr &
pascal@11216 45 sleep 4 && avant-window-navigator
pascal@11216 46 _EOT_
pascal@11216 47
pascal@11216 48 # split awn-manager
pascal@11216 49 rm -f $fs/usr/bin/awn-manager
pascal@11216 50 rm -rf $fs/usr/share/$PACKAGE/awn-manager
pascal@11216 51 rm -f $fs/usr/share/applications/awn-manager.desktop
pascal@11216 52
pascal@11216 53 # fix permissions
pascal@11216 54 chmod +x $fs/usr/bin/*
pascal@11216 55
pascal@11216 56 # Fix missing icon
pascal@11216 57 cd $fs/usr/share/pixmaps
pascal@11216 58 ln -s avant-window-navigator.png awn-manager.png
pascal@11216 59
pascal@11216 60
pascal@11216 61 }
pascal@11216 62
pascal@11216 63 post_install()
pascal@11216 64 {
pascal@11216 65 # ln missing icons
pascal@11216 66 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 67 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 68 }