wok-next annotate avant-window-navigator/receipt @ rev 18000
qemu: enable curses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 25 12:57:51 2015 +0200 (2015-04-25) |
parents | 17e313b5b9c1 |
children | d5f9f516b706 |
rev | line source |
---|---|
pascal@11216 | 1 # SliTaz package receipt. |
pascal@11216 | 2 |
pascal@11216 | 3 PACKAGE="avant-window-navigator" |
pascal@11216 | 4 VERSION="0.4.0" |
pascal@11216 | 5 CATEGORY="x-window" |
pascal@11216 | 6 SHORT_DESC="Dock-like bar which sits at the bottom of the screen." |
pascal@11216 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@11216 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@11216 | 10 WEB_SITE="https://launchpad.net/awn/" |
pascal@17869 | 11 WGET_URL="http://launchpad.net/awn/${VERSION%.*}/$VERSION/+download/$TARBALL" |
al@17501 | 12 TAGS="panel" |
pascal@11216 | 13 |
pankso@12552 | 14 DEPENDS="acl dbus dbus-glib librsvg libwnck xorg-xcompmgr libgtop \ |
pankso@12552 | 15 libdesktop-agnostic" |
pankso@12552 | 16 BUILD_DEPENDS="dbus-dev librsvg-dev libwnck-dev pygtk-dev xcb-util-dev \ |
pankso@12552 | 17 libxcb-dev startup-notification-dev pycairo-dev pygobject-dev libffi-dev \ |
pankso@12552 | 18 python-xdg intltool acl-dev dbus-dev dbus-glib-dev python-dev \ |
pankso@12553 | 19 libdesktop-agnostic-dev libgtop-dev GConf-dev" |
pankso@12552 | 20 |
pascal@11216 | 21 # Rules to configure and make the package. |
pascal@11216 | 22 compile_rules() |
pascal@11216 | 23 { |
pascal@12651 | 24 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@17670 | 25 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" |
pascal@12651 | 26 |
pascal@11216 | 27 ./configure \ |
pascal@11216 | 28 --prefix=/usr \ |
pascal@11216 | 29 --sysconfdir=/etc \ |
pascal@11216 | 30 --with-desktop=agnostic \ |
pascal@11216 | 31 $CONFIGURE_ARGS && |
pascal@11216 | 32 make && |
pascal@11216 | 33 make DESTDIR=$DESTDIR install |
pascal@11216 | 34 } |
pascal@11216 | 35 |
pascal@11216 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11216 | 37 genpkg_rules() |
pascal@11216 | 38 { |
pascal@11216 | 39 mkdir -p $fs/usr/lib $fs/usr/share |
pascal@15000 | 40 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 41 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@15000 | 42 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
pascal@15000 | 43 cp -a $install/usr/share/applications $fs/usr/share |
pascal@15000 | 44 cp -a $install/usr/share/icons/hicolor/32x32/apps \ |
pascal@11216 | 45 $fs/usr/share/pixmaps |
pascal@11216 | 46 # Custom autostart script so we ensure xcompmgr is also started. |
pascal@11216 | 47 cat > $fs/usr/bin/awn-autostart << _EOT_ |
pascal@11216 | 48 #!/bin/sh |
pascal@11216 | 49 xcompmgr & |
pascal@11216 | 50 sleep 4 && avant-window-navigator |
pascal@11216 | 51 _EOT_ |
pascal@11216 | 52 |
pascal@11216 | 53 # split awn-manager |
pascal@11216 | 54 rm -f $fs/usr/bin/awn-manager |
pascal@11216 | 55 rm -rf $fs/usr/share/$PACKAGE/awn-manager |
pascal@11216 | 56 rm -f $fs/usr/share/applications/awn-manager.desktop |
pascal@11216 | 57 |
pascal@11216 | 58 # fix permissions |
pascal@11216 | 59 chmod +x $fs/usr/bin/* |
pascal@11216 | 60 |
pascal@11216 | 61 # Fix missing icon |
pascal@11216 | 62 cd $fs/usr/share/pixmaps |
pascal@11216 | 63 ln -s avant-window-navigator.png awn-manager.png |
pascal@11216 | 64 |
pascal@11216 | 65 |
pascal@11216 | 66 } |
pascal@11216 | 67 |
pascal@11216 | 68 post_install() |
pascal@11216 | 69 { |
pascal@11216 | 70 # ln missing icons |
pascal@11216 | 71 ln -sf $1/usr/share/icons/SliTaz/16x16/actions/go-up.png $1/usr/share/icons/SliTaz/16x16/actions/gtk-sort-ascending.png |
pascal@11216 | 72 ln -sf $1/usr/share/icons/SliTaz/16x16/actions/go-down.png $1/usr/share/icons/SliTaz/16x16/actions/gtk-sort-descending.png |
pascal@11216 | 73 } |