wok annotate awesome/receipt @ rev 9154

magicpoint: needs make -j1
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 07 09:07:43 2011 +0100 (2011-03-07)
parents d1e3d41cea3f
children b055fad40b76
rev   line source
mallory@2687 1 # SliTaz package receipt.
mallory@2687 2
mallory@2687 3 PACKAGE="awesome"
slaxemulator@9000 4 VERSION="3.4.9"
mallory@2687 5 CATEGORY="x-window"
mallory@2687 6 SHORT_DESC="awesome is a highly configurable, next generation framework window manager for X."
mallory@2687 7 MAINTAINER="mallory@sweetpeople.org"
slaxemulator@6479 8 DEPENDS="xorg-libX11 libxcb xcb-util lua pango cairo imlib2 dbus libev libxdg-basedir startup-notification freetype fontconfig libpng"
slaxemulator@6479 9 BUILD_DEPENDS="cmake xorg-libX11-dev libxcb-dev xcb-util-dev lua-dev pango-dev cairo-dev imlib2 imlib2-dev dbus-dev libev-dev gperf cairo libxdg-basedir-dev startup-notification-dev imagemagick pkg-config freetype-dev fontconfig-dev libpng-dev"
mallory@2687 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
mallory@2687 11 WEB_SITE="http://awesome.naquadah.org"
mallory@2687 12 WGET_URL="$WEB_SITE/download/$TARBALL"
jozee@3564 13 TAGS="window-manager wm"
mallory@2687 14
mallory@2687 15 # Rules to configure and make the package.
mallory@2687 16 compile_rules()
mallory@2687 17 {
mallory@2687 18 cd $src
slaxemulator@9000 19 patch -Np1 -i $stuff/0001-Normalize-icon-path-names-fixes-869.patch
slaxemulator@6479 20 make CMAKE_ARGS=" -DPREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg \
slaxemulator@6479 21 -DCMAKE_BUILD_TYPE=RELEASE" &&
slaxemulator@9000 22 make install
mallory@2687 23
mallory@2687 24 }
mallory@2687 25
mallory@2687 26 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2687 27 genpkg_rules()
mallory@2687 28 {
mallory@2687 29 mkdir -p $fs/etc
mallory@2687 30 cp -a $_pkg/etc $fs/
mallory@2687 31 mkdir -p $fs/usr
mallory@2687 32 cp -a $_pkg/usr/bin $fs/usr
mallory@2687 33 cp -a $_pkg/usr/share $fs/usr
mallory@2687 34 }
mallory@2687 35
mallory@3114 36 post_install()
mallory@3114 37 {
mallory@3114 38 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
mallory@3114 39 # Adding WM to SLIM available sessions.
mallory@3114 40 if ! echo "$res" | grep -q $PACKAGE; then
mallory@3114 41 echo -n "Adding $PACKAGE to /etc/slim.conf..."
mallory@3114 42 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
mallory@3114 43 status
mallory@3114 44 fi
mallory@3114 45 }
mallory@3114 46
mallory@3114 47 post_remove()
mallory@3114 48 {
mallory@3114 49 # Remove WM from SLIM available sessions.
mallory@3114 50 if grep -q $PACKAGE $1/etc/slim.conf; then
mallory@3114 51 sed -i s/,$PACKAGE// $1/etc/slim.conf
mallory@3114 52 fi
mallory@3114 53 }
mallory@3114 54