wok view awesome/receipt @ rev 18583
Up slitaz-tools-boxes(958)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Nov 12 11:40:39 2015 +0200 (2015-11-12) |
parents | 17e313b5b9c1 |
children | d5f9f516b706 |
line source
1 # SliTaz package receipt.
3 PACKAGE="awesome"
4 VERSION="3.5.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Highly configurable framework window manager"
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"
14 DEPENDS="cairo dbus gdk-pixbuf libxdg-basedir lgi lua startup-notification \
15 xcb-util-image xcb-util-keysyms xcb-util-wm xorg-libXcursor"
16 BUILD_DEPENDS="cmake xorg-libX11-dev libxcb-dev xcb-util-dev \
17 xcb-util-keysyms-dev xcb-util-image-dev xcb-util-wm-dev lua-dev pango-dev \
18 cairo-dev imlib2-dev dbus-dev libev-dev gperf cairo libxdg-basedir-dev \
19 startup-notification-dev imagemagick pkg-config freetype-dev fontconfig-dev \
20 libpng-dev libxdg-basedir-dev openexr libltdl gdk-pixbuf-dev \
21 xorg-libXcursor-dev lgi"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ldl"
27 export AWESOME_IGNORE_LGI=1
28 make CMAKE_ARGS=" -DCMAKE_INSTALL_PREFIX:PATH=/usr \
29 -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 cp -a $install/* $fs
39 # move lua scripts to lua directory
40 mkdir -p $fs/usr/share/lua
41 mv $fs/usr/share/awesome/lib $fs/usr/share/lua/5.2
43 # add pango typelibs
44 # (not need to install pango-dev with full stack of dev packages)
45 mkdir -p $fs/usr/lib
46 cp -a $WOK/pango/install/usr/lib/girepository-1.0 $fs/usr/lib
47 }
49 post_install()
50 {
51 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
52 # Adding WM to SLIM available sessions.
53 if ! echo "$res" | grep -q $PACKAGE; then
54 echo -n "Adding $PACKAGE to /etc/slim.conf..."
55 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
56 status
57 fi
58 }
60 post_remove()
61 {
62 # Remove WM from SLIM available sessions.
63 if grep -q $PACKAGE $1/etc/slim.conf; then
64 sed -i s/,$PACKAGE// $1/etc/slim.conf
65 fi
66 }