wok annotate awesome/receipt @ rev 12084

busybox: su should not chdir
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 09 18:20:06 2012 +0100 (2012-03-09)
parents 1db2d4da5685
children 56dab4b7208f
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@9793 14 libxdg-basedir startup-notification freetype fontconfig libpng libxdg-basedir"
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 \
pascal@11822 18 libpng-dev libxdg-basedir-dev openexr graphviz"
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