wok annotate pekwm/receipt @ rev 11052

Up: pekwm to 0.1.13.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Oct 16 23:12:55 2011 +0000 (2011-10-16)
parents 82243e902598
children 51a1ebbda768
rev   line source
jozee@2875 1 # SliTaz package receipt.
jozee@2875 2
jozee@2875 3 PACKAGE="pekwm"
slaxemulator@11052 4 VERSION="0.1.13"
jozee@2875 5 CATEGORY="x-window"
pankso@2878 6 SHORT_DESC="Very light, configurable and themable window manager for X."
jozee@2875 7 MAINTAINER="jozee@slitaz.org"
jozee@2875 8 DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm"
jozee@2875 9 BUILD_DEPENDS="xorg-dev xorg-dev-proto zlib-dev"
jozee@3027 10 SUGGESTED="hsetroot tint2 lxpanel wbar xorg-xprop xorg-xev xdotool wmctrl"
slaxemulator@11052 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@5613 12 WEB_SITE="http://www.pekwm.org/projects/pekwm"
pascal@5613 13 WGET_URL="$WEB_SITE/files/$TARBALL"
jozee@2875 14
jozee@2875 15 # Rules to configure and make the package.
jozee@2875 16 compile_rules()
jozee@2875 17 {
jozee@2875 18 cd $src
pankso@2878 19 ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS &&
pankso@2878 20 make &&
slaxemulator@11052 21 make DESTDIR=$DESTDIR install
jozee@2875 22 }
jozee@2875 23
jozee@2875 24 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2875 25 genpkg_rules()
jozee@2875 26 {
pankso@2880 27 mkdir -p $fs/usr/bin $fs/usr/share/pekwm $fs/etc
jozee@2875 28 cp -a $_pkg/usr/bin $fs/usr
jozee@2875 29 cp -a $_pkg/usr/share/pekwm $fs/usr/share
jozee@2875 30 cp -a $_pkg/etc $fs
pankso@2880 31 # Custom configuration files and scripts
slaxemulator@11052 32 cp -a $stuff/etc $fs
slaxemulator@11052 33 cp -a $stuff/scripts $fs/usr/share/pekwm
jozee@2875 34 # Set perms.
jozee@2875 35 chown -R root.root $fs
pankso@2878 36 chmod +x $fs/etc/pekwm/start
pankso@2878 37 chmod +x $fs/usr/share/pekwm/scripts/*
jozee@2875 38 chmod 0755 $fs/usr/bin/pekwm
jozee@2875 39 }
jozee@2875 40
jozee@2875 41 post_install()
jozee@2875 42 {
pankso@2878 43 # Pekwm searches for default font path (100dpi folder) for xsever to render
pankso@2878 44 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts
pankso@2878 45 # by linking to ttf-dejavu
pankso@2878 46 if [ ! -d $1/usr/share/fonts/X11/100dpi/ ]; then
pankso@2878 47 mkdir -p $1/usr/share/fonts/X11/100dpi
pankso@2878 48 cd $1/usr/share/fonts/X11/100dpi
pankso@2878 49 ln -s ../../truetype/ttf-dejavu/* .
pankso@2878 50 fi
jozee@2875 51
jozee@2875 52 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
jozee@2875 53 # Adding WM to SLIM available sessions.
jozee@2875 54 if ! echo "$res" | grep -q $PACKAGE; then
jozee@2875 55 echo -n "Adding $PACKAGE to /etc/slim.conf..."
pankso@2878 56 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
jozee@2875 57 status
jozee@2875 58 fi
jozee@2875 59 }
jozee@2875 60
jozee@2875 61 post_remove()
jozee@2875 62 {
pankso@2878 63 # Remove WM from SLIM available sessions.
pankso@2878 64 if grep -q $PACKAGE $1/etc/slim.conf; then
pankso@2878 65 sed -i s/,$PACKAGE// $1/etc/slim.conf
jozee@2875 66 fi
jozee@2875 67 }