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