wok-6.x view awesome/receipt @ rev 12865
Up: awesome to 3.4.11.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu May 24 21:17:01 2012 +0000 (2012-05-24) |
parents | 972694670737 |
children | b804c5f31614 |
line source
1 # SliTaz package receipt.
3 PACKAGE="awesome"
4 VERSION="3.4.11"
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.xz"
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 xcb-util-keysyms xcb-util-image xcb-util-wm \
14 lua pango cairo imlib2 dbus libev libxdg-basedir startup-notification \
15 freetype fontconfig libpng libxdg-basedir"
16 BUILD_DEPENDS="cmake xorg-libX11-dev libxcb-dev xcb-util-dev xcb-util-keysyms-dev \
17 xcb-util-image-dev xcb-util-wm-dev lua-dev pango-dev cairo-dev imlib2-dev \
18 dbus-dev libev-dev gperf cairo libxdg-basedir-dev startup-notification-dev \
19 imagemagick pkg-config freetype-dev fontconfig-dev libpng-dev libxdg-basedir-dev openexr"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 patch -Np1 -i $stuff/0001-Normalize-icon-path-names-fixes-869.patch
26 make CMAKE_ARGS=" -DPREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg \
27 -DCMAKE_BUILD_TYPE=RELEASE" &&
28 make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/etc
36 cp -a $_pkg/etc $fs/
37 mkdir -p $fs/usr
38 cp -a $_pkg/usr/bin $fs/usr
39 cp -a $_pkg/usr/share $fs/usr
40 }
42 post_install()
43 {
44 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
45 # Adding WM to SLIM available sessions.
46 if ! echo "$res" | grep -q $PACKAGE; then
47 echo -n "Adding $PACKAGE to /etc/slim.conf..."
48 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
49 status
50 fi
51 }
53 post_remove()
54 {
55 # Remove WM from SLIM available sessions.
56 if grep -q $PACKAGE $1/etc/slim.conf; then
57 sed -i s/,$PACKAGE// $1/etc/slim.conf
58 fi
59 }