wok view avant-window-navigator/receipt @ rev 17305

python-cups: fix bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 01 10:55:48 2014 +0100 (2014-11-01)
parents 4c6b6a900860
children 5d53e8ccbc8d
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://launchpad.net/awn/"
11 WGET_URL="http://launchpad.net/awn/0.4/$VERSION/+download/$TARBALL"
12 TAGS="window-manager wm panel"
14 DEPENDS="acl dbus dbus-glib librsvg libwnck xorg-xcompmgr libgtop \
15 libdesktop-agnostic"
16 BUILD_DEPENDS="dbus-dev librsvg-dev libwnck-dev pygtk-dev xcb-util-dev \
17 libxcb-dev startup-notification-dev pycairo-dev pygobject-dev libffi-dev \
18 python-xdg intltool acl-dev dbus-dev dbus-glib-dev python-dev \
19 libdesktop-agnostic-dev libgtop-dev GConf-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
25 export LDFLAGS="-Wl,--copy-dt-needed-entries"
27 cd $src
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 --with-desktop=agnostic \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib $fs/usr/share
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 cp -a $install/usr/share/$PACKAGE $fs/usr/share
44 cp -a $install/usr/share/applications $fs/usr/share
45 cp -a $install/usr/share/icons/hicolor/32x32/apps \
46 $fs/usr/share/pixmaps
47 # Custom autostart script so we ensure xcompmgr is also started.
48 cat > $fs/usr/bin/awn-autostart << _EOT_
49 #!/bin/sh
50 xcompmgr &
51 sleep 4 && avant-window-navigator
52 _EOT_
54 # split awn-manager
55 rm -f $fs/usr/bin/awn-manager
56 rm -rf $fs/usr/share/$PACKAGE/awn-manager
57 rm -f $fs/usr/share/applications/awn-manager.desktop
59 # fix permissions
60 chmod +x $fs/usr/bin/*
62 # Fix missing icon
63 cd $fs/usr/share/pixmaps
64 ln -s avant-window-navigator.png awn-manager.png
67 }
69 post_install()
70 {
71 # ln missing icons
72 ln -sf $1/usr/share/icons/SliTaz/16x16/actions/go-up.png $1/usr/share/icons/SliTaz/16x16/actions/gtk-sort-ascending.png
73 ln -sf $1/usr/share/icons/SliTaz/16x16/actions/go-down.png $1/usr/share/icons/SliTaz/16x16/actions/gtk-sort-descending.png
74 }