wok-next view awesome/receipt @ rev 20715
Up nsd (4.1.21)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 27 13:10:46 2018 +0300 (2018-05-27) |
parents | dd145c435e4b |
children | 624ffd1bb925 |
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 xorg-xcb-util-image xorg-xcb-util-keysyms xorg-xcb-util-wm xorg-libXcursor"
16 BUILD_DEPENDS="cmake xorg-libX11-dev xorg-libxcb-dev xorg-xcb-util-dev \
17 xorg-xcb-util-keysyms-dev xorg-xcb-util-image-dev xorg-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 freetype-dev fontconfig-dev \
20 libpng16-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 }