wok view avant-window-navigator/receipt @ rev 17926
Up to latest: slitaz-tools, tazinst-gui, tazinst, tazpanel, tazpkg.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 11 16:51:21 2015 +0300 (2015-04-11) |
parents | 17e313b5b9c1 |
children | d5f9f516b706 |
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/${VERSION%.*}/$VERSION/+download/$TARBALL"
12 TAGS="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="$LDFLAGS -Wl,--copy-dt-needed-entries"
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 $install/usr/bin $fs/usr
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 cp -a $install/usr/share/$PACKAGE $fs/usr/share
43 cp -a $install/usr/share/applications $fs/usr/share
44 cp -a $install/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 }