wok view awesome/receipt @ rev 8116

Fixed pcsxr-svn.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jan 23 20:01:37 2011 +0000 (2011-01-23)
parents 60a26469a54d
children 6f5616234865
line source
1 # SliTaz package receipt.
3 PACKAGE="awesome"
4 VERSION="3.4.8"
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 freetype fontconfig libpng"
9 BUILD_DEPENDS="cmake xorg-libX11-dev libxcb-dev xcb-util-dev lua-dev pango-dev cairo-dev imlib2 imlib2-dev dbus-dev libev-dev gperf cairo libxdg-basedir-dev startup-notification-dev imagemagick pkg-config freetype-dev fontconfig-dev libpng-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 CMAKE_ARGS=" -DPREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg \
21 -DCMAKE_BUILD_TYPE=RELEASE" &&
22 make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/etc
30 cp -a $_pkg/etc $fs/
31 mkdir -p $fs/usr
32 cp -a $_pkg/usr/bin $fs/usr
33 cp -a $_pkg/usr/share $fs/usr
34 }
36 post_install()
37 {
38 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
39 # Adding WM to SLIM available sessions.
40 if ! echo "$res" | grep -q $PACKAGE; then
41 echo -n "Adding $PACKAGE to /etc/slim.conf..."
42 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
43 status
44 fi
45 }
47 post_remove()
48 {
49 # Remove WM from SLIM available sessions.
50 if grep -q $PACKAGE $1/etc/slim.conf; then
51 sed -i s/,$PACKAGE// $1/etc/slim.conf
52 fi
53 }