wok-4.x annotate karmen/receipt @ rev 4820
Fix: fix WGET_URL to gdb-python.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed Jan 20 11:49:15 2010 +0100 (2010-01-20) |
parents | |
children |
rev | line source |
---|---|
pankso@2894 | 1 # SliTaz package receipt. |
pankso@2894 | 2 |
pankso@2894 | 3 PACKAGE="karmen" |
pankso@2894 | 4 VERSION="0.15" |
pankso@2894 | 5 CATEGORY="x-window" |
pankso@2894 | 6 SHORT_DESC="Very light and minimalistic window manager for X." |
pankso@2894 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@2894 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@2894 | 9 WEB_SITE="http://karmen.sourceforge.net/" |
pankso@2894 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@2894 | 11 DEPENDS="xorg-libX11 xorg-xsetroot wbar" |
pankso@2894 | 12 BUILD_DEPENDS="xorg-libX11-dev" |
pankso@2894 | 13 TAGS="wm window-manager" |
pankso@2894 | 14 |
pankso@2894 | 15 # Rules to configure and make the package. |
pankso@2894 | 16 compile_rules() |
pankso@2894 | 17 { |
pankso@2894 | 18 cd $src |
pankso@2894 | 19 ./configure --prefix=/usr && |
pankso@2894 | 20 make && |
pankso@2894 | 21 make DESTDIR=$PWD/_pkg install |
pankso@2894 | 22 } |
pankso@2894 | 23 |
pankso@2894 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2894 | 25 genpkg_rules() |
pankso@2894 | 26 { |
pankso@2894 | 27 mkdir -p $fs/usr |
pankso@2894 | 28 cp -a $_pkg/usr/bin $fs/usr |
pankso@2894 | 29 # Custom configuration and scripts. |
pankso@2894 | 30 cp -a stuff/karmen-session $fs/usr/bin |
pankso@2894 | 31 cp -a stuff/karmen-conf $fs/usr/bin |
pankso@2894 | 32 cp -a stuff/etc $fs |
pankso@2894 | 33 chown 0.0 $fs/usr/bin/* |
pankso@2894 | 34 } |
pankso@2894 | 35 |
pankso@2894 | 36 post_install() |
pankso@2894 | 37 { |
pankso@2894 | 38 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` |
pankso@2894 | 39 # Adding WM to SLIM available sessions. |
pankso@2894 | 40 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@2894 | 41 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@2894 | 42 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf |
pankso@2894 | 43 status |
pankso@2894 | 44 fi |
pankso@2894 | 45 } |
pankso@2894 | 46 |
pankso@2894 | 47 post_remove() |
pankso@2894 | 48 { |
pankso@2894 | 49 # Remove WM from SLIM available sessions. |
pankso@2894 | 50 if grep -q $PACKAGE $1/etc/slim.conf; then |
pankso@2894 | 51 sed -i s/,$PACKAGE// $1/etc/slim.conf |
pankso@2894 | 52 fi |
pankso@2894 | 53 } |