wok-current rev 2875

Add: pekwm Window Manager
author Rohit Joshi <jozee@slitaz.org>
date Sun May 03 17:27:09 2009 +0000 (2009-05-03)
parents 41b67c175e37
children b37d0f1205d5
files pekwm/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pekwm/receipt	Sun May 03 17:27:09 2009 +0000
     1.3 @@ -0,0 +1,69 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="pekwm"
     1.7 +VERSION="0.1.10"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="Window manager"
    1.10 +MAINTAINER="jozee@slitaz.org"
    1.11 +DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm"
    1.12 +BUILD_DEPENDS="xorg-dev xorg-dev-proto zlib-dev"
    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 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS
    1.22 +	make
    1.23 +	make DESTDIR=$PWD/_pkg install
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +	mkdir -p $fs/usr/bin
    1.30 +	mkdir -p $fs/usr/share
    1.31 +	mkdir -p $fs/etc
    1.32 +	cp -a $_pkg/usr/bin $fs/usr
    1.33 +	cp -a $_pkg/usr/share/pekwm $fs/usr/share
    1.34 +	cp -a $_pkg/etc $fs
    1.35 +	#cp -a stuff/etc/* $fs/etc/pekwm
    1.36 +	
    1.37 +	# Set perms.
    1.38 +	chown -R root.root $fs
    1.39 +	chmod 0755 $fs/usr/bin/pekwm
    1.40 +	
    1.41 +
    1.42 +	
    1.43 +	
    1.44 +}
    1.45 +
    1.46 +post_install()
    1.47 +{
    1.48 +	#pekwm searches for default font path (100dpi folder) for xsever to render menus; either manually set it in .xinitrc or
    1.49 +	#fake 100dpi folder fonts by linking to ttf-dejavu
    1.50 +	mkdir -p /usr/share/fonts/X11/100dpi
    1.51 +	ln -s /usr/share/fonts/truetype/ttf-dejavu/* /usr/share/fonts/X11/100dpi/
    1.52 +	
    1.53 +	# add pekwm /etc/slim.conf 
    1.54 +	res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
    1.55 +	# Adding WM to SLIM available sessions.
    1.56 +	if ! echo "$res" | grep -q $PACKAGE; then
    1.57 +		echo -n "Adding $PACKAGE to /etc/slim.conf..."
    1.58 +		sed -i "s/^sessions.*/sessions            ${res},pekwm/" /etc/slim.conf
    1.59 +		status
    1.60 +	fi
    1.61 +
    1.62 +	# add pekwm to tazx
    1.63 +	
    1.64 +}
    1.65 +
    1.66 +post_remove()
    1.67 +{
    1.68 +	# Remove pekwm from SLIM available sessions.
    1.69 +	if grep -q pekwm $1/etc/slim.conf; then
    1.70 +		sed -i s/,pekwm// $1/etc/slim.conf
    1.71 +	fi
    1.72 +}