wok diff karmen/receipt @ rev 9635

busybox: remove .desktop files covered by tazpanel
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 26 19:06:48 2011 +0200 (2011-04-26)
parents
children cb76ed027bff
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/karmen/receipt	Tue Apr 26 19:06:48 2011 +0200
     1.3 @@ -0,0 +1,53 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="karmen"
     1.7 +VERSION="0.15"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="Very light and minimalistic window manager for X."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://karmen.sourceforge.net/"
    1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.14 +DEPENDS="xorg-libX11 xorg-xsetroot wbar"
    1.15 +BUILD_DEPENDS="xorg-libX11-dev"
    1.16 +TAGS="wm window-manager"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	./configure --prefix=/usr &&
    1.23 +	make &&
    1.24 +	make DESTDIR=$PWD/_pkg install
    1.25 +}
    1.26 +
    1.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.28 +genpkg_rules()
    1.29 +{
    1.30 +	mkdir -p $fs/usr
    1.31 +	cp -a $_pkg/usr/bin $fs/usr
    1.32 +	# Custom configuration and scripts.
    1.33 +	cp -a stuff/karmen-session $fs/usr/bin
    1.34 +	cp -a stuff/karmen-conf $fs/usr/bin
    1.35 +	cp -a stuff/etc $fs
    1.36 +	chown 0.0 $fs/usr/bin/*
    1.37 +}
    1.38 +
    1.39 +post_install()
    1.40 +{
    1.41 +	res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
    1.42 +	# Adding WM to SLIM available sessions.
    1.43 +	if ! echo "$res" | grep -q $PACKAGE; then
    1.44 +		echo -n "Adding $PACKAGE to /etc/slim.conf..."
    1.45 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" /etc/slim.conf
    1.46 +		status
    1.47 +	fi
    1.48 +}
    1.49 +
    1.50 +post_remove()
    1.51 +{
    1.52 +	# Remove WM from SLIM available sessions.
    1.53 +	if grep -q $PACKAGE $1/etc/slim.conf; then
    1.54 +		sed -i s/,$PACKAGE// $1/etc/slim.conf
    1.55 +	fi
    1.56 +}