wok-current view avant-window-navigator/receipt @ rev 11573
Fix build/host configure option in recipes which was not detecting the right ones well + tiny fixes.
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Mon Jan 02 23:06:18 2012 +0100 (2012-01-02) |
parents | |
children | 8cc1b222fdd5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="avant-window-navigator"
4 VERSION="0.4.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Dock-like bar which sits at the bottom of the screen."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="dbus librsvg libwnck xorg-xcompmgr libgtop"
9 BUILD_DEPENDS="dbus-dev librsvg-dev libwnck libwnck-dev pygtk-dev xcb-util-dev \
10 libxcb-dev startup-notification-dev pycairo-dev pygobject-dev libffi-dev \
11 python-xdg intltool acl dbus-glib-dev python-dev libdesktop-agnostic-dev \
12 GConf libgtop-dev"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WEB_SITE="https://launchpad.net/awn/"
15 WGET_URL="http://launchpad.net/awn/0.4/$VERSION/+download/$TARBALL"
16 TAGS="window-manager wm panel"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure \
23 --prefix=/usr \
24 --sysconfdir=/etc \
25 --with-desktop=agnostic \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib $fs/usr/share
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
37 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
38 cp -a $_pkg/usr/share/applications $fs/usr/share
39 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps \
40 $fs/usr/share/pixmaps
41 # Custom autostart script so we ensure xcompmgr is also started.
42 cat > $fs/usr/bin/awn-autostart << _EOT_
43 #!/bin/sh
44 xcompmgr &
45 sleep 4 && avant-window-navigator
46 _EOT_
48 # split awn-manager
49 rm -f $fs/usr/bin/awn-manager
50 rm -rf $fs/usr/share/$PACKAGE/awn-manager
51 rm -f $fs/usr/share/applications/awn-manager.desktop
53 # fix permissions
54 chmod +x $fs/usr/bin/*
56 # Fix missing icon
57 cd $fs/usr/share/pixmaps
58 ln -s avant-window-navigator.png awn-manager.png
61 }
63 post_install()
64 {
65 # ln missing icons
66 ln -sf $1/usr/share/icons/SliTaz/16x16/actions/go-up.png $1/usr/share/icons/SliTaz/16x16/actions/gtk-sort-ascending.png
67 ln -sf $1/usr/share/icons/SliTaz/16x16/actions/go-down.png $1/usr/share/icons/SliTaz/16x16/actions/gtk-sort-descending.png
68 }