wok view awesome/receipt @ rev 16019
Up: cookutils (3.3) Support for armv6hf and better croos tools
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 05 23:34:15 2014 +0100 (2014-03-05) |
parents | b804c5f31614 |
children | 1d98908f8e3b |
line source
1 # SliTaz package receipt.
3 PACKAGE="awesome"
4 VERSION="3.5.1"
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://awesome.naquadah.org"
11 WGET_URL="$WEB_SITE/download/$TARBALL"
12 TAGS="window-manager wm"
14 DEPENDS="xorg-libX11 libxcb xcb-util xcb-util-keysyms xcb-util-image xcb-util-wm \
15 lua pango cairo imlib2 dbus libev libxdg-basedir startup-notification \
16 freetype fontconfig libpng libxdg-basedir"
17 BUILD_DEPENDS="cmake xorg-libX11-dev libxcb-dev xcb-util-dev xcb-util-keysyms-dev \
18 xcb-util-image-dev xcb-util-wm-dev lua-dev pango-dev cairo-dev imlib2-dev \
19 dbus-dev libev-dev gperf cairo libxdg-basedir-dev startup-notification-dev \
20 imagemagick pkg-config freetype-dev fontconfig-dev libpng-dev libxdg-basedir-dev \
21 openexr libltdl gdk-pixbuf-dev"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 export LDFLAGS="-Wl,--copy-dt-needed-entries -ldl"
28 export AWESOME_IGNORE_LGI=1
29 make CMAKE_ARGS=" -DPREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg \
30 -DCMAKE_BUILD_TYPE=RELEASE" &&
31 make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/etc
38 cp -a $install/etc $fs/
39 mkdir -p $fs/usr
40 cp -a $install/usr/local/bin $fs/usr
41 cp -a $install/usr/local/share $fs/usr
42 }
44 post_install()
45 {
46 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
47 # Adding WM to SLIM available sessions.
48 if ! echo "$res" | grep -q $PACKAGE; then
49 echo -n "Adding $PACKAGE to /etc/slim.conf..."
50 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
51 status
52 fi
53 }
55 post_remove()
56 {
57 # Remove WM from SLIM available sessions.
58 if grep -q $PACKAGE $1/etc/slim.conf; then
59 sed -i s/,$PACKAGE// $1/etc/slim.conf
60 fi
61 }