wok-current view awesome/receipt @ rev 17383
perl-md4: close quotes in receipt
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Nov 27 01:43:38 2014 +0200 (2014-11-27) |
parents | 8af9cc5386a5 |
children | 5d53e8ccbc8d |
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 wm"
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="-Wl,--copy-dt-needed-entries -ldl"
27 make CMAKE_ARGS=" -DCMAKE_INSTALL_PREFIX:PATH=/usr \
28 -DXDG_CONFIG_DIR=/etc/xdg \
29 -DCMAKE_BUILD_TYPE=RELEASE" &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/* $fs
38 # move lua scripts to lua directory
39 mkdir -p $fs/usr/share/lua
40 mv $fs/usr/share/awesome/lib $fs/usr/share/lua/5.2
42 # add pango typelibs
43 # (not need to install pango-dev with full stack of dev packages)
44 mkdir -p $fs/usr/lib
45 cp -a $WOK/pango/install/usr/lib/girepository-1.0 $fs/usr/lib
46 }
48 post_install()
49 {
50 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
51 # Adding WM to SLIM available sessions.
52 if ! echo "$res" | grep -q $PACKAGE; then
53 echo -n "Adding $PACKAGE to /etc/slim.conf..."
54 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
55 status
56 fi
57 }
59 post_remove()
60 {
61 # Remove WM from SLIM available sessions.
62 if grep -q $PACKAGE $1/etc/slim.conf; then
63 sed -i s/,$PACKAGE// $1/etc/slim.conf
64 fi
65 }