wok-4.x annotate fluxbox/receipt @ rev 7854

ruby: package with shared library, develop required.
author Liu Peng <rocky@slitaz.org>
date Wed Dec 29 08:15:41 2010 +0000 (2010-12-29)
parents 9f19aee613be
children 0b026b4ca46c
rev   line source
mallory@2868 1 # SliTaz package receipt.
mallory@2868 2
mallory@2868 3 PACKAGE="fluxbox"
slaxemulator@6299 4 VERSION="1.1.1"
mallory@2868 5 CATEGORY="x-window"
mallory@2868 6 SHORT_DESC="Fluxbox is a windowmanager for X. It is very light on resources and easy to handle but yet full of features."
mallory@2868 7 MAINTAINER="mallory@sweetpeople.org"
pankso@3402 8 DEPENDS="fontconfig imlib2 xorg-libICE xorg-libSM xorg-libX11 \
pascal@2870 9 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft xorg-libXinerama \
pascal@5001 10 xorg-libXpm xorg-libXrandr xorg-libXrender gcc-lib-base"
slaxemulator@6299 11 BUILD_DEPENDS="xorg-dev xorg-dev-proto"
mallory@2868 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
mallory@2868 13 WEB_SITE="http://www.fluxbox.org/"
mallory@2868 14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@3402 15 TAGS="wm window-manager"
mallory@2868 16
mallory@2868 17 # Rules to configure and make the package.
mallory@2868 18 compile_rules()
mallory@2868 19 {
mallory@2868 20 cd $src
pascal@2870 21 patch -p1 < ../stuff/fluxbox-gcc-4.3.3.diff
mallory@2868 22 ./configure \
mallory@2868 23 --prefix=/usr \
mallory@2868 24 --infodir=/usr/share/info \
mallory@2868 25 --mandir=/usr/share/man \
mallory@2868 26 $CONFIGURE_ARGS &&
mallory@2868 27 make && make DESTDIR=$PWD/_pkg install
mallory@2868 28 }
mallory@2868 29
mallory@2868 30 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2868 31 genpkg_rules()
mallory@2868 32 {
mallory@2868 33 mkdir -p $fs/usr
mallory@2868 34 cp -a $_pkg/usr/bin $fs/usr
pascal@2870 35 cp -a $_pkg/usr/share $fs/usr
mallory@2868 36 }
mallory@2868 37
mallory@3113 38 post_install()
mallory@3113 39 {
mallory@3113 40 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
mallory@3113 41 # Adding WM to SLIM available sessions.
mallory@3113 42 if ! echo "$res" | grep -q $PACKAGE; then
mallory@3113 43 echo -n "Adding $PACKAGE to /etc/slim.conf..."
mallory@3113 44 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
mallory@3113 45 status
mallory@3113 46 fi
mallory@3113 47 }
mallory@3113 48
mallory@3113 49 post_remove()
mallory@3113 50 {
mallory@3113 51 # Remove WM from SLIM available sessions.
mallory@3113 52 if grep -q $PACKAGE $1/etc/slim.conf; then
mallory@3113 53 sed -i s/,$PACKAGE// $1/etc/slim.conf
mallory@3113 54 fi
mallory@3113 55 }
mallory@3113 56