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