wok annotate avant-window-navigator/receipt @ rev 17049

busyboot-boot: use devtmpfs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 20 16:27:39 2014 +0200 (2014-08-20)
parents 4c6b6a900860
children 5d53e8ccbc8d
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@11216 11 WGET_URL="http://launchpad.net/awn/0.4/$VERSION/+download/$TARBALL"
pascal@11216 12 TAGS="window-manager wm 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@12651 25 export LDFLAGS="-Wl,--copy-dt-needed-entries"
pascal@12651 26
pascal@11216 27 cd $src
pascal@11216 28 ./configure \
pascal@11216 29 --prefix=/usr \
pascal@11216 30 --sysconfdir=/etc \
pascal@11216 31 --with-desktop=agnostic \
pascal@11216 32 $CONFIGURE_ARGS &&
pascal@11216 33 make &&
pascal@11216 34 make DESTDIR=$DESTDIR install
pascal@11216 35 }
pascal@11216 36
pascal@11216 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11216 38 genpkg_rules()
pascal@11216 39 {
pascal@11216 40 mkdir -p $fs/usr/lib $fs/usr/share
pascal@15000 41 cp -a $install/usr/bin $fs/usr
pascal@15000 42 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15000 43 cp -a $install/usr/share/$PACKAGE $fs/usr/share
pascal@15000 44 cp -a $install/usr/share/applications $fs/usr/share
pascal@15000 45 cp -a $install/usr/share/icons/hicolor/32x32/apps \
pascal@11216 46 $fs/usr/share/pixmaps
pascal@11216 47 # Custom autostart script so we ensure xcompmgr is also started.
pascal@11216 48 cat > $fs/usr/bin/awn-autostart << _EOT_
pascal@11216 49 #!/bin/sh
pascal@11216 50 xcompmgr &
pascal@11216 51 sleep 4 && avant-window-navigator
pascal@11216 52 _EOT_
pascal@11216 53
pascal@11216 54 # split awn-manager
pascal@11216 55 rm -f $fs/usr/bin/awn-manager
pascal@11216 56 rm -rf $fs/usr/share/$PACKAGE/awn-manager
pascal@11216 57 rm -f $fs/usr/share/applications/awn-manager.desktop
pascal@11216 58
pascal@11216 59 # fix permissions
pascal@11216 60 chmod +x $fs/usr/bin/*
pascal@11216 61
pascal@11216 62 # Fix missing icon
pascal@11216 63 cd $fs/usr/share/pixmaps
pascal@11216 64 ln -s avant-window-navigator.png awn-manager.png
pascal@11216 65
pascal@11216 66
pascal@11216 67 }
pascal@11216 68
pascal@11216 69 post_install()
pascal@11216 70 {
pascal@11216 71 # ln missing icons
pascal@11216 72 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 73 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 74 }