wok view awesome/receipt @ rev 9232
Try to fix get-linux-source
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Mar 12 04:18:35 2011 +0100 (2011-03-12) |
parents | d1e3d41cea3f |
children | b055fad40b76 |
line source
1 # SliTaz package receipt.
3 PACKAGE="awesome"
4 VERSION="3.4.9"
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 patch -Np1 -i $stuff/0001-Normalize-icon-path-names-fixes-869.patch
20 make CMAKE_ARGS=" -DPREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg \
21 -DCMAKE_BUILD_TYPE=RELEASE" &&
22 make 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 }