wok-current annotate karmen/receipt @ rev 15449
Up: edje (1.7.9)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Nov 05 20:58:02 2013 +0100 (2013-11-05) |
parents | 08943259e85e |
children | 23c3aed67cd9 |
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@12408 | 11 TAGS="wm window-manager" |
pankso@12408 | 12 |
pankso@12408 | 13 DEPENDS="xorg-libX11 xorg-xsetroot nano xterm xorg-xclock dialog" |
pankso@2894 | 14 BUILD_DEPENDS="xorg-libX11-dev" |
pankso@2894 | 15 |
pankso@2894 | 16 # Rules to configure and make the package. |
pankso@2894 | 17 compile_rules() |
pankso@2894 | 18 { |
pankso@2894 | 19 cd $src |
pankso@12408 | 20 ./configure --prefix=/usr \ |
pankso@12408 | 21 $CONFIGURE_ARGS && |
pankso@12408 | 22 make && make install |
pankso@2894 | 23 } |
pankso@2894 | 24 |
pankso@2894 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2894 | 26 genpkg_rules() |
pankso@2894 | 27 { |
pankso@12408 | 28 mkdir -p $fs/usr/share |
pankso@2894 | 29 cp -a $_pkg/usr/bin $fs/usr |
pankso@2894 | 30 # Custom configuration and scripts. |
pankso@12408 | 31 install -m 0755 $stuff/karmen-session $fs/usr/bin |
pankso@12408 | 32 install -m 0755 $stuff/karmen-conf $fs/usr/bin |
pankso@12408 | 33 cp -a $stuff/xsessions $fs/usr/share |
pankso@12408 | 34 cp -a $stuff/etc $fs |
pankso@2894 | 35 chown 0.0 $fs/usr/bin/* |
pankso@2894 | 36 } |
pankso@2894 | 37 |
pankso@2894 | 38 post_install() |
pankso@2894 | 39 { |
pankso@2894 | 40 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` |
pankso@2894 | 41 # Adding WM to SLIM available sessions. |
pankso@2894 | 42 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@2894 | 43 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@12408 | 44 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf |
pankso@2894 | 45 status |
pankso@2894 | 46 fi |
pankso@2894 | 47 } |
pankso@2894 | 48 |
pankso@2894 | 49 post_remove() |
pankso@2894 | 50 { |
pankso@2894 | 51 # Remove WM from SLIM available sessions. |
pankso@2894 | 52 if grep -q $PACKAGE $1/etc/slim.conf; then |
pankso@2894 | 53 sed -i s/,$PACKAGE// $1/etc/slim.conf |
pankso@2894 | 54 fi |
pankso@2894 | 55 } |