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

awesome+startup-notification: fix BUILD_DEPENDS
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 13 23:19:06 2011 +0200 (2011-05-13)
parents 6f5616234865
children 4c79e08222a7
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"
mallory@2687 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
mallory@2687 9 WEB_SITE="http://awesome.naquadah.org"
mallory@2687 10 WGET_URL="$WEB_SITE/download/$TARBALL"
jozee@3564 11 TAGS="window-manager wm"
mallory@2687 12
pankso@9792 13 DEPENDS="xorg-libX11 libxcb xcb-util lua pango cairo imlib2 dbus libev \
pankso@9792 14 libxdg-basedir startup-notification freetype fontconfig libpng"
pankso@9792 15 BUILD_DEPENDS="cmake xorg-libX11-dev libxcb-dev xcb-util-dev lua-dev pango-dev \
pankso@9792 16 cairo-dev imlib2 imlib2-dev dbus-dev libev-dev gperf cairo libxdg-basedir-dev \
pankso@9792 17 startup-notification-dev imagemagick pkg-config freetype-dev fontconfig-dev \
pankso@9792 18 libpng-dev"
pankso@9792 19
mallory@2687 20 # Rules to configure and make the package.
mallory@2687 21 compile_rules()
mallory@2687 22 {
mallory@2687 23 cd $src
slaxemulator@9000 24 patch -Np1 -i $stuff/0001-Normalize-icon-path-names-fixes-869.patch
slaxemulator@6479 25 make CMAKE_ARGS=" -DPREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg \
slaxemulator@6479 26 -DCMAKE_BUILD_TYPE=RELEASE" &&
slaxemulator@9000 27 make install
mallory@2687 28
mallory@2687 29 }
mallory@2687 30
mallory@2687 31 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2687 32 genpkg_rules()
mallory@2687 33 {
mallory@2687 34 mkdir -p $fs/etc
mallory@2687 35 cp -a $_pkg/etc $fs/
mallory@2687 36 mkdir -p $fs/usr
mallory@2687 37 cp -a $_pkg/usr/bin $fs/usr
mallory@2687 38 cp -a $_pkg/usr/share $fs/usr
mallory@2687 39 }
mallory@2687 40
mallory@3114 41 post_install()
mallory@3114 42 {
mallory@3114 43 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
mallory@3114 44 # Adding WM to SLIM available sessions.
mallory@3114 45 if ! echo "$res" | grep -q $PACKAGE; then
mallory@3114 46 echo -n "Adding $PACKAGE to /etc/slim.conf..."
mallory@3114 47 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
mallory@3114 48 status
mallory@3114 49 fi
mallory@3114 50 }
mallory@3114 51
mallory@3114 52 post_remove()
mallory@3114 53 {
mallory@3114 54 # Remove WM from SLIM available sessions.
mallory@3114 55 if grep -q $PACKAGE $1/etc/slim.conf; then
mallory@3114 56 sed -i s/,$PACKAGE// $1/etc/slim.conf
mallory@3114 57 fi
mallory@3114 58 }
mallory@3114 59