wok annotate pekwm/receipt @ 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 | |
children | d432f911ee03 |
rev | line source |
---|---|
jozee@2875 | 1 # SliTaz package receipt. |
jozee@2875 | 2 |
jozee@2875 | 3 PACKAGE="pekwm" |
jozee@2875 | 4 VERSION="0.1.10" |
jozee@2875 | 5 CATEGORY="x-window" |
jozee@2875 | 6 SHORT_DESC="Window manager" |
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@2875 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
jozee@2875 | 11 WEB_SITE="http://www.pekwm.org/projects/3/files" |
jozee@2875 | 12 WGET_URL="$WEB_SITE/$TARBALL" |
jozee@2875 | 13 |
jozee@2875 | 14 # Rules to configure and make the package. |
jozee@2875 | 15 compile_rules() |
jozee@2875 | 16 { |
jozee@2875 | 17 cd $src |
jozee@2875 | 18 ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS |
jozee@2875 | 19 make |
jozee@2875 | 20 make DESTDIR=$PWD/_pkg install |
jozee@2875 | 21 } |
jozee@2875 | 22 |
jozee@2875 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2875 | 24 genpkg_rules() |
jozee@2875 | 25 { |
jozee@2875 | 26 mkdir -p $fs/usr/bin |
jozee@2875 | 27 mkdir -p $fs/usr/share |
jozee@2875 | 28 mkdir -p $fs/etc |
jozee@2875 | 29 cp -a $_pkg/usr/bin $fs/usr |
jozee@2875 | 30 cp -a $_pkg/usr/share/pekwm $fs/usr/share |
jozee@2875 | 31 cp -a $_pkg/etc $fs |
jozee@2875 | 32 #cp -a stuff/etc/* $fs/etc/pekwm |
jozee@2875 | 33 |
jozee@2875 | 34 # Set perms. |
jozee@2875 | 35 chown -R root.root $fs |
jozee@2875 | 36 chmod 0755 $fs/usr/bin/pekwm |
jozee@2875 | 37 |
jozee@2875 | 38 |
jozee@2875 | 39 |
jozee@2875 | 40 |
jozee@2875 | 41 } |
jozee@2875 | 42 |
jozee@2875 | 43 post_install() |
jozee@2875 | 44 { |
jozee@2875 | 45 #pekwm searches for default font path (100dpi folder) for xsever to render menus; either manually set it in .xinitrc or |
jozee@2875 | 46 #fake 100dpi folder fonts by linking to ttf-dejavu |
jozee@2875 | 47 mkdir -p /usr/share/fonts/X11/100dpi |
jozee@2875 | 48 ln -s /usr/share/fonts/truetype/ttf-dejavu/* /usr/share/fonts/X11/100dpi/ |
jozee@2875 | 49 |
jozee@2875 | 50 # add pekwm /etc/slim.conf |
jozee@2875 | 51 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` |
jozee@2875 | 52 # Adding WM to SLIM available sessions. |
jozee@2875 | 53 if ! echo "$res" | grep -q $PACKAGE; then |
jozee@2875 | 54 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
jozee@2875 | 55 sed -i "s/^sessions.*/sessions ${res},pekwm/" /etc/slim.conf |
jozee@2875 | 56 status |
jozee@2875 | 57 fi |
jozee@2875 | 58 |
jozee@2875 | 59 # add pekwm to tazx |
jozee@2875 | 60 |
jozee@2875 | 61 } |
jozee@2875 | 62 |
jozee@2875 | 63 post_remove() |
jozee@2875 | 64 { |
jozee@2875 | 65 # Remove pekwm from SLIM available sessions. |
jozee@2875 | 66 if grep -q pekwm $1/etc/slim.conf; then |
jozee@2875 | 67 sed -i s/,pekwm// $1/etc/slim.conf |
jozee@2875 | 68 fi |
jozee@2875 | 69 } |