wok-stable view fluxbox/receipt @ rev 3150
Add: desktop-file-utils (Update 'Open with' in PCmanFM and other freedesktop standard apps)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 24 00:20:59 2009 +0200 (2009-05-24) |
parents | fce920962070 |
children | 77eb23ead823 |
line source
1 # SliTaz package receipt.
3 PACKAGE="fluxbox"
4 VERSION="1.0.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Fluxbox is a windowmanager for X. It is very light on resources and easy to handle but yet full of features."
7 MAINTAINER="mallory@sweetpeople.org"
8 DEPENDS="fontconfig imlib2 libiconv xorg-libICE xorg-libSM xorg-libX11 \
9 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft xorg-libXinerama \
10 xorg-libXpm xorg-libXrandr xorg-libXrender"
11 BUILD_DEPENDS="xorg-dev"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WEB_SITE="http://www.fluxbox.org/"
14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 patch -p1 < ../stuff/fluxbox-gcc-4.3.3.diff
21 ./configure \
22 --prefix=/usr \
23 --infodir=/usr/share/info \
24 --mandir=/usr/share/man \
25 $CONFIGURE_ARGS &&
26 make && make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/share $fs/usr
35 }
37 post_install()
38 {
39 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
40 # Adding WM to SLIM available sessions.
41 if ! echo "$res" | grep -q $PACKAGE; then
42 echo -n "Adding $PACKAGE to /etc/slim.conf..."
43 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
44 status
45 fi
46 }
48 post_remove()
49 {
50 # Remove WM from SLIM available sessions.
51 if grep -q $PACKAGE $1/etc/slim.conf; then
52 sed -i s/,$PACKAGE// $1/etc/slim.conf
53 fi
54 }