wok view awesome/receipt @ rev 6480

Up: wesnoth, wesnoth-music to 1.8.5.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Sep 30 02:41:36 2010 +0000 (2010-09-30)
parents 1d488faa32c7
children d1e3d41cea3f
line source
1 # SliTaz package receipt.
3 PACKAGE="awesome"
4 VERSION="3.4.7"
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 }