wok annotate pekwm/receipt @ rev 7694

Added gtkglext to gtkglext-dev depends. Changed gtkglext source to a .tar.bz2 one.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Dec 18 09:53:14 2010 +0000 (2010-12-18)
parents a967653480c1
children 1c0a598ad465
rev   line source
jozee@2875 1 # SliTaz package receipt.
jozee@2875 2
jozee@2875 3 PACKAGE="pekwm"
devl547@5612 4 VERSION="0.1.12"
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"
pascal@5613 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
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 &&
jozee@2875 21 make DESTDIR=$PWD/_pkg 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
pankso@2878 32 cp -a stuff/etc $fs
pankso@2880 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 }