wok annotate pekwm/receipt @ rev 15452

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