wok-next view awesome/receipt @ rev 3564

tag some more a* receipts
author Rohit Joshi <jozee@slitaz.org>
date Wed Jun 24 19:00:28 2009 +0000 (2009-06-24)
parents 5b127b495311
children e2ae0e65c659
line source
1 # SliTaz package receipt.
3 PACKAGE="awesome"
4 VERSION="3.3"
5 CATEGORY="x-window"
6 SHORT_DESC="awesome is a highly configurable, next generation framework window manager for X."
7 MAINTAINER="mallory@sweetpeople.org"
8 DEPENDS="xorg-libX11 libxcb xcb-util lua pango cairo-xcb imlib2 dbus libev libxdg-basedir startup-notification"
9 BUILD_DEPENDS="cmake xorg-libX11-dev libxcb-dev xcb-util-dev lua-dev pango-dev cairo-xcb-dev imlib2-dev dbus-dev libev-dev gperf cairo-xcb libxdg-basedir-dev startup-notification-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://awesome.naquadah.org"
12 WGET_URL="$WEB_SITE/download/$TARBALL"
13 TAGS="window-manager wm"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 cmake -DCMAKE_INSTALL_PREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg .
20 make &&
21 make DESTDIR=_pkg install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/etc
29 cp -a $_pkg/etc $fs/
30 mkdir -p $fs/usr
31 cp -a $_pkg/usr/bin $fs/usr
32 cp -a $_pkg/usr/share $fs/usr
33 }
35 post_install()
36 {
37 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
38 # Adding WM to SLIM available sessions.
39 if ! echo "$res" | grep -q $PACKAGE; then
40 echo -n "Adding $PACKAGE to /etc/slim.conf..."
41 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
42 status
43 fi
44 }
46 post_remove()
47 {
48 # Remove WM from SLIM available sessions.
49 if grep -q $PACKAGE $1/etc/slim.conf; then
50 sed -i s/,$PACKAGE// $1/etc/slim.conf
51 fi
52 }