wok-next diff pekwm/receipt @ rev 2878
pekwm: Fix and improve receipt + add custom config
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 04 14:07:08 2009 +0200 (2009-05-04) |
parents | 2a44d519abca |
children | 95a7fe095e66 |
line diff
1.1 --- a/pekwm/receipt Sun May 03 17:27:09 2009 +0000 1.2 +++ b/pekwm/receipt Mon May 04 14:07:08 2009 +0200 1.3 @@ -3,10 +3,11 @@ 1.4 PACKAGE="pekwm" 1.5 VERSION="0.1.10" 1.6 CATEGORY="x-window" 1.7 -SHORT_DESC="Window manager" 1.8 +SHORT_DESC="Very light, configurable and themable window manager for X." 1.9 MAINTAINER="jozee@slitaz.org" 1.10 DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm" 1.11 BUILD_DEPENDS="xorg-dev xorg-dev-proto zlib-dev" 1.12 +SUGGESTED="hsetroot tint2 lxpanel wbar" 1.13 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 WEB_SITE="http://www.pekwm.org/projects/3/files" 1.15 WGET_URL="$WEB_SITE/$TARBALL" 1.16 @@ -15,8 +16,8 @@ 1.17 compile_rules() 1.18 { 1.19 cd $src 1.20 - ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS 1.21 - make 1.22 + ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS && 1.23 + make && 1.24 make DESTDIR=$PWD/_pkg install 1.25 } 1.26 1.27 @@ -29,41 +30,40 @@ 1.28 cp -a $_pkg/usr/bin $fs/usr 1.29 cp -a $_pkg/usr/share/pekwm $fs/usr/share 1.30 cp -a $_pkg/etc $fs 1.31 - #cp -a stuff/etc/* $fs/etc/pekwm 1.32 - 1.33 + # Custom configuration files 1.34 + cp -a stuff/etc $fs 1.35 + echo '$TERM="xterm"' > $fs/etc/pekwm/vars 1.36 # Set perms. 1.37 chown -R root.root $fs 1.38 + chmod +x $fs/etc/pekwm/start 1.39 + chmod +x $fs/usr/share/pekwm/scripts/* 1.40 chmod 0755 $fs/usr/bin/pekwm 1.41 - 1.42 - 1.43 - 1.44 - 1.45 } 1.46 1.47 post_install() 1.48 { 1.49 - #pekwm searches for default font path (100dpi folder) for xsever to render menus; either manually set it in .xinitrc or 1.50 - #fake 100dpi folder fonts by linking to ttf-dejavu 1.51 - mkdir -p /usr/share/fonts/X11/100dpi 1.52 - ln -s /usr/share/fonts/truetype/ttf-dejavu/* /usr/share/fonts/X11/100dpi/ 1.53 + # Pekwm searches for default font path (100dpi folder) for xsever to render 1.54 + # menus; either manually set it in .xinitrc or fake 100dpi folder fonts 1.55 + # by linking to ttf-dejavu 1.56 + if [ ! -d $1/usr/share/fonts/X11/100dpi/ ]; then 1.57 + mkdir -p $1/usr/share/fonts/X11/100dpi 1.58 + cd $1/usr/share/fonts/X11/100dpi 1.59 + ln -s ../../truetype/ttf-dejavu/* . 1.60 + fi 1.61 1.62 - # add pekwm /etc/slim.conf 1.63 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` 1.64 # Adding WM to SLIM available sessions. 1.65 if ! echo "$res" | grep -q $PACKAGE; then 1.66 echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.67 - sed -i "s/^sessions.*/sessions ${res},pekwm/" /etc/slim.conf 1.68 + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf 1.69 status 1.70 fi 1.71 - 1.72 - # add pekwm to tazx 1.73 - 1.74 } 1.75 1.76 post_remove() 1.77 { 1.78 - # Remove pekwm from SLIM available sessions. 1.79 - if grep -q pekwm $1/etc/slim.conf; then 1.80 - sed -i s/,pekwm// $1/etc/slim.conf 1.81 + # Remove WM from SLIM available sessions. 1.82 + if grep -q $PACKAGE $1/etc/slim.conf; then 1.83 + sed -i s/,$PACKAGE// $1/etc/slim.conf 1.84 fi 1.85 }