wok-6.x annotate awesome/receipt @ rev 16697

Add: lgi; awesome: fix receipt.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 23 18:46:34 2014 +0300 (2014-05-23)
parents 8af9cc5386a5
children 5d53e8ccbc8d
rev   line source
mallory@2687 1 # SliTaz package receipt.
mallory@2687 2
mallory@2687 3 PACKAGE="awesome"
pascal@15128 4 VERSION="3.5.1"
mallory@2687 5 CATEGORY="x-window"
al@16697 6 SHORT_DESC="Highly configurable framework window manager"
mallory@2687 7 MAINTAINER="mallory@sweetpeople.org"
pascal@15128 8 LICENSE="GPL2"
slaxemulator@12865 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@16697 10 WEB_SITE="http://awesome.naquadah.org/"
al@16697 11 WGET_URL="${WEB_SITE}download/$TARBALL"
jozee@3564 12 TAGS="window-manager wm"
mallory@2687 13
al@16697 14 DEPENDS="cairo dbus gdk-pixbuf libxdg-basedir lgi lua startup-notification \
al@16697 15 xcb-util-image xcb-util-keysyms xcb-util-wm xorg-libXcursor"
al@16697 16 BUILD_DEPENDS="cmake xorg-libX11-dev libxcb-dev xcb-util-dev \
al@16697 17 xcb-util-keysyms-dev xcb-util-image-dev xcb-util-wm-dev lua-dev pango-dev \
al@16697 18 cairo-dev imlib2-dev dbus-dev libev-dev gperf cairo libxdg-basedir-dev \
al@16697 19 startup-notification-dev imagemagick pkg-config freetype-dev fontconfig-dev \
al@16697 20 libpng-dev libxdg-basedir-dev openexr libltdl gdk-pixbuf-dev \
al@16697 21 xorg-libXcursor-dev lgi"
pankso@9792 22
mallory@2687 23 # Rules to configure and make the package.
mallory@2687 24 compile_rules()
mallory@2687 25 {
pascal@15128 26 export LDFLAGS="-Wl,--copy-dt-needed-entries -ldl"
al@16697 27 make CMAKE_ARGS=" -DCMAKE_INSTALL_PREFIX:PATH=/usr \
al@16697 28 -DXDG_CONFIG_DIR=/etc/xdg \
pascal@15128 29 -DCMAKE_BUILD_TYPE=RELEASE" &&
pascal@15128 30 make install
mallory@2687 31 }
mallory@2687 32
mallory@2687 33 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2687 34 genpkg_rules()
mallory@2687 35 {
al@16697 36 cp -a $install/* $fs
al@16697 37
al@16697 38 # move lua scripts to lua directory
al@16697 39 mkdir -p $fs/usr/share/lua
al@16697 40 mv $fs/usr/share/awesome/lib $fs/usr/share/lua/5.2
al@16697 41
al@16697 42 # add pango typelibs
al@16697 43 # (not need to install pango-dev with full stack of dev packages)
al@16697 44 mkdir -p $fs/usr/lib
al@16697 45 cp -a $WOK/pango/install/usr/lib/girepository-1.0 $fs/usr/lib
mallory@2687 46 }
mallory@2687 47
mallory@3114 48 post_install()
mallory@3114 49 {
mallory@3114 50 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
mallory@3114 51 # Adding WM to SLIM available sessions.
mallory@3114 52 if ! echo "$res" | grep -q $PACKAGE; then
mallory@3114 53 echo -n "Adding $PACKAGE to /etc/slim.conf..."
mallory@3114 54 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
mallory@3114 55 status
mallory@3114 56 fi
mallory@3114 57 }
mallory@3114 58
mallory@3114 59 post_remove()
mallory@3114 60 {
mallory@3114 61 # Remove WM from SLIM available sessions.
mallory@3114 62 if grep -q $PACKAGE $1/etc/slim.conf; then
mallory@3114 63 sed -i s/,$PACKAGE// $1/etc/slim.conf
mallory@3114 64 fi
mallory@3114 65 }