wok-undigest annotate avant-window-navigator/receipt @ rev 213

ovzkernel-i686: add gztazmod
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue Jan 04 07:32:18 2011 +0100 (2011-01-04)
parents b945dce244aa
children 3e4ee9255f3d
rev   line source
pankso@37 1 # SliTaz package receipt.
pankso@37 2
pankso@37 3 PACKAGE="avant-window-navigator"
pankso@211 4 VERSION="0.4.0"
pankso@37 5 CATEGORY="x-window"
pankso@37 6 SHORT_DESC="Dock-like bar which sits at the bottom of the screen."
pankso@37 7 MAINTAINER="pankso@slitaz.org"
jozee@52 8 DEPENDS="dbus librsvg libwnck xorg-xcompmgr"
jozee@52 9 BUILD_DEPENDS="dbus-dev librsvg-dev libwnck libwnck-dev pygtk-dev xcb-util-dev libxcb-dev startup-notification-dev pycairo-dev pygobject-dev libffi-dev python-xdg intltool acl dbus-glib-dev"
pankso@37 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@37 11 WEB_SITE="https://launchpad.net/awn/"
pankso@211 12 WGET_URL="http://launchpad.net/awn/0.4/$VERSION/+download/$TARBALL"
jozee@52 13 TAGS="window-manager wm panel"
pankso@37 14
pankso@37 15 # Rules to configure and make the package.
pankso@37 16 compile_rules()
pankso@37 17 {
pankso@37 18 cd $src
pankso@37 19 ./configure \
pankso@37 20 --prefix=/usr \
pankso@37 21 --sysconfdir=/etc \
pankso@37 22 --with-desktop=agnostic \
pankso@37 23 --without-gconf \
pankso@37 24 $CONFIGURE_ARGS &&
pankso@37 25 make &&
pankso@37 26 make DESTDIR=$PWD/_pkg install
pankso@37 27 }
pankso@37 28
pankso@37 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@37 30 genpkg_rules()
pankso@37 31 {
pankso@37 32 mkdir -p $fs/usr/lib $fs/usr/share
pankso@37 33 cp -a $_pkg/usr/bin $fs/usr
pankso@37 34 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@37 35 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
pankso@37 36 cp -a $_pkg/usr/share/applications $fs/usr/share
pankso@37 37 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps \
pankso@37 38 $fs/usr/share/pixmaps
pankso@37 39 # Custom autostart script so we ensure xcompmgr is also started.
pankso@37 40 cat > $fs/usr/bin/awn-autostart << _EOT_
pankso@37 41 #!/bin/sh
pankso@37 42 xcompmgr &
pankso@37 43 sleep 4 && avant-window-navigator
pankso@37 44 _EOT_
jozee@52 45
jozee@52 46 # split awn-manager
jozee@52 47 rm -f $fs/usr/bin/awn-manager
jozee@52 48 rm -rf $fs/usr/share/$PACKAGE/awn-manager
jozee@52 49 rm -f $fs/usr/share/applications/awn-manager.desktop
jozee@52 50
jozee@52 51 # fix permissions
jozee@52 52 chmod +x $fs/usr/bin/*
jozee@52 53
pankso@37 54 # Fix missing icon
pankso@37 55 cd $fs/usr/share/pixmaps
pankso@37 56 ln -s avant-window-navigator.png awn-manager.png
jozee@52 57
jozee@52 58
pankso@37 59 }
jozee@52 60
jozee@52 61 post_install()
jozee@52 62 {
jozee@52 63 # ln missing icons
jozee@52 64 ln -sf $1/usr/share/icons/SliTaz/16x16/actions/go-up.png $1/usr/share/icons/SliTaz/16x16/actions/gtk-sort-ascending.png
jozee@52 65 ln -sf $1/usr/share/icons/SliTaz/16x16/actions/go-down.png $1/usr/share/icons/SliTaz/16x16/actions/gtk-sort-descending.png
jozee@52 66 }