wok diff avant-window-navigator/receipt @ rev 11824

uclibc-i486: add post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 26 21:45:45 2012 +0100 (2012-02-26)
parents
children 8cc1b222fdd5
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/avant-window-navigator/receipt	Sun Feb 26 21:45:45 2012 +0100
     1.3 @@ -0,0 +1,68 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="avant-window-navigator"
     1.7 +VERSION="0.4.0"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="Dock-like bar which sits at the bottom of the screen."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +DEPENDS="dbus librsvg libwnck xorg-xcompmgr libgtop"
    1.12 +BUILD_DEPENDS="dbus-dev librsvg-dev libwnck libwnck-dev pygtk-dev xcb-util-dev \
    1.13 +libxcb-dev startup-notification-dev pycairo-dev pygobject-dev libffi-dev \
    1.14 +python-xdg intltool acl dbus-glib-dev python-dev libdesktop-agnostic-dev \
    1.15 +GConf libgtop-dev"
    1.16 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 +WEB_SITE="https://launchpad.net/awn/"
    1.18 +WGET_URL="http://launchpad.net/awn/0.4/$VERSION/+download/$TARBALL"
    1.19 +TAGS="window-manager wm panel"
    1.20 +
    1.21 +# Rules to configure and make the package.
    1.22 +compile_rules()
    1.23 +{
    1.24 +	cd $src
    1.25 +	./configure \
    1.26 +		--prefix=/usr \
    1.27 +		--sysconfdir=/etc \
    1.28 +		--with-desktop=agnostic \
    1.29 +		$CONFIGURE_ARGS &&
    1.30 +	make &&
    1.31 +	make DESTDIR=$DESTDIR install
    1.32 +}
    1.33 +
    1.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 +genpkg_rules()
    1.36 +{
    1.37 +	mkdir -p $fs/usr/lib $fs/usr/share
    1.38 +	cp -a $_pkg/usr/bin $fs/usr
    1.39 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.40 +	cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
    1.41 +	cp -a $_pkg/usr/share/applications $fs/usr/share
    1.42 +	cp -a $_pkg/usr/share/icons/hicolor/32x32/apps \
    1.43 +		$fs/usr/share/pixmaps
    1.44 +	# Custom autostart script so we ensure xcompmgr is also started.
    1.45 +	cat > $fs/usr/bin/awn-autostart << _EOT_
    1.46 +#!/bin/sh
    1.47 +xcompmgr &
    1.48 +sleep 4 && avant-window-navigator
    1.49 +_EOT_
    1.50 +	
    1.51 +	# split awn-manager
    1.52 +	rm -f $fs/usr/bin/awn-manager
    1.53 +	rm -rf $fs/usr/share/$PACKAGE/awn-manager
    1.54 +	rm -f $fs/usr/share/applications/awn-manager.desktop
    1.55 +	
    1.56 +	# fix permissions
    1.57 +	chmod +x $fs/usr/bin/*
    1.58 +	
    1.59 +	# Fix missing icon
    1.60 +	cd $fs/usr/share/pixmaps
    1.61 +	ln -s avant-window-navigator.png awn-manager.png
    1.62 +	
    1.63 +	
    1.64 +}
    1.65 +
    1.66 +post_install()
    1.67 +{
    1.68 +  # ln missing icons
    1.69 +    ln -sf $1/usr/share/icons/SliTaz/16x16/actions/go-up.png $1/usr/share/icons/SliTaz/16x16/actions/gtk-sort-ascending.png
    1.70 +    ln -sf $1/usr/share/icons/SliTaz/16x16/actions/go-down.png $1/usr/share/icons/SliTaz/16x16/actions/gtk-sort-descending.png
    1.71 +}