wok view awesome/receipt @ rev 10328
fsarchiver: Add $CONFIGURE_ARGS.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun May 22 00:55:31 2011 +0000 (2011-05-22) |
parents | b055fad40b76 |
children | 1db2d4da5685 |
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://awesome.naquadah.org"
10 WGET_URL="$WEB_SITE/download/$TARBALL"
11 TAGS="window-manager wm"
13 DEPENDS="xorg-libX11 libxcb xcb-util lua pango cairo imlib2 dbus libev \
14 libxdg-basedir startup-notification freetype fontconfig libpng libxdg-basedir"
15 BUILD_DEPENDS="cmake xorg-libX11-dev libxcb-dev xcb-util-dev lua-dev pango-dev \
16 cairo-dev imlib2 imlib2-dev dbus-dev libev-dev gperf cairo libxdg-basedir-dev \
17 startup-notification-dev imagemagick pkg-config freetype-dev fontconfig-dev \
18 libpng-dev libxdg-basedir-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 patch -Np1 -i $stuff/0001-Normalize-icon-path-names-fixes-869.patch
25 make CMAKE_ARGS=" -DPREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg \
26 -DCMAKE_BUILD_TYPE=RELEASE" &&
27 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/etc
35 cp -a $_pkg/etc $fs/
36 mkdir -p $fs/usr
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/share $fs/usr
39 }
41 post_install()
42 {
43 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
44 # Adding WM to SLIM available sessions.
45 if ! echo "$res" | grep -q $PACKAGE; then
46 echo -n "Adding $PACKAGE to /etc/slim.conf..."
47 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
48 status
49 fi
50 }
52 post_remove()
53 {
54 # Remove WM from SLIM available sessions.
55 if grep -q $PACKAGE $1/etc/slim.conf; then
56 sed -i s/,$PACKAGE// $1/etc/slim.conf
57 fi
58 }