wok-4.x view awesome/receipt @ rev 3254
Add: docutils
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Mon Jun 01 00:41:36 2009 +0000 (2009-06-01) |
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 }