wok-6.x view awesome/receipt @ rev 13799

Up: xf86-video-intel (2.20.17)
author Alexander Medvedev <devl547@gmail.com>
date Sun Jan 06 04:31:04 2013 +0300 (2013-01-06)
parents 56dab4b7208f
children 8af9cc5386a5
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 \
20 openexr libltdl"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 export LDFLAGS="-Wl,--copy-dt-needed-entries -ldl"
27 sed -i 's|glib/gspawn|glib|' spawn.c
28 patch -Np1 -i $stuff/0001-Normalize-icon-path-names-fixes-869.patch
29 make CMAKE_ARGS=" -DPREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg \
30 -DCMAKE_BUILD_TYPE=RELEASE" &&
31 make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/etc
39 cp -a $_pkg/etc $fs/
40 mkdir -p $fs/usr
41 cp -a $_pkg/usr/bin $fs/usr
42 cp -a $_pkg/usr/share $fs/usr
43 }
45 post_install()
46 {
47 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
48 # Adding WM to SLIM available sessions.
49 if ! echo "$res" | grep -q $PACKAGE; then
50 echo -n "Adding $PACKAGE to /etc/slim.conf..."
51 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
52 status
53 fi
54 }
56 post_remove()
57 {
58 # Remove WM from SLIM available sessions.
59 if grep -q $PACKAGE $1/etc/slim.conf; then
60 sed -i s/,$PACKAGE// $1/etc/slim.conf
61 fi
62 }