wok view awesome/receipt @ rev 20086
clamav: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 28 13:29:46 2017 +0200 (2017-09-28) |
parents | 0606c4356e47 |
children | bd2dfe2c0c09 |
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 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
55 fi
56 }
58 post_remove()
59 {
60 # Remove WM from SLIM available sessions.
61 if grep -q $PACKAGE "$1/etc/slim.conf"; then
62 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
63 fi
64 }
66 ## -----------------------------------------------------------------------
67 ## Revision: 03/Aug/2017 - SliTaz DevTeam.
68 ## Website: "http://awesome.naquadah.org/" is OFF.
69 ## This looks good? => https://awesomewm.org/
70 ## !! Please, remove this after you update. Thank you.