wok-6.x view awesome/receipt @ rev 5657
Up: libogg (1.2.0)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sun May 30 02:45:16 2010 +0000 (2010-05-30) |
parents | ec066bd77049 |
children | 60a26469a54d |
line source
1 # SliTaz package receipt.
3 PACKAGE="awesome"
4 VERSION="3.4.5"
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 imlib2 dbus libev libxdg-basedir startup-notification"
9 BUILD_DEPENDS="cmake xorg-libX11-dev libxcb-dev xcb-util-dev lua-dev pango-dev cairo-dev imlib2-dev dbus-dev libev-dev gperf cairo libxdg-basedir-dev startup-notification-dev imagemagick"
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 }