wok-6.x view awesome/receipt @ rev 3487
Up: audacious-plugins, fix: receipt, compile-options (and mp3 works now)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Jun 17 16:26:37 2009 +0000 (2009-06-17) |
parents | fbb5d580ddc3 |
children | c616ce6b7873 |
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"
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 }