wok view awesome/receipt @ rev 3175

reconfigure udev after /etc/udev/rules.d addition
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 25 13:26:29 2009 +0200 (2009-05-25)
parents d309f58d5d7c
children 5b127b495311
line source
1 # SliTaz package receipt.
3 PACKAGE="awesome"
4 VERSION="3.2.1"
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"
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"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://awesome.naquadah.org"
12 WGET_URL="$WEB_SITE/download/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 cmake -DCMAKE_INSTALL_PREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg .
19 make &&
20 make DESTDIR=_pkg install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/etc
28 cp -a $_pkg/etc $fs/
29 mkdir -p $fs/usr
30 cp -a $_pkg/usr/bin $fs/usr
31 cp -a $_pkg/usr/share $fs/usr
32 }
34 post_install()
35 {
36 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
37 # Adding WM to SLIM available sessions.
38 if ! echo "$res" | grep -q $PACKAGE; then
39 echo -n "Adding $PACKAGE to /etc/slim.conf..."
40 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
41 status
42 fi
43 }
45 post_remove()
46 {
47 # Remove WM from SLIM available sessions.
48 if grep -q $PACKAGE $1/etc/slim.conf; then
49 sed -i s/,$PACKAGE// $1/etc/slim.conf
50 fi
51 }