wok-current view slim/receipt @ rev 4440
up bird 1.1.5
author | Allan Pinto <allan316@gmail.com> |
---|---|
date | Tue Nov 03 09:52:14 2009 +0000 (2009-11-03) |
parents | 996a788dda09 |
children | 09d47b216378 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slim"
4 VERSION="1.3.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Desktop-independent graphical login manager for X11."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base gcc-lib-base expat fontconfig freetype util-linux-ng-uuid zlib \
9 jpeg libpng xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp \
10 xorg-libXext xorg-libXft xorg-libXmu xorg-libXrender xorg-libXt"
11 BUILD_DEPENDS="xorg-dev jpeg-dev libpng-dev xorg-libXft-dev"
12 SUGGESTED="slim-theme-default slitaz-configs"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WEB_SITE="http://slim.berlios.de"
15 WGET_URL="http://download.berlios.de/slim/$TARBALL"
16 CONFIG_FILES="/etc/slim.conf"
17 BUGS="Sometime needs more than 10 seconds to start (since HAL/DCOP addition)."
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 patch -p0 < ../stuff/gcc44.patch || exit 1
24 sed -i "s|/usr/X11R6/include|/usr/include/xorg|g" Makefile
25 sed -i "s|/usr/X11R6/|/usr/|g" Makefile
26 make
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin $fs/usr/share/slim
33 cp -a $src/slim $fs/usr/bin
34 cp -a stuff/themes $fs/usr/share/slim
35 # Config file and rc script.
36 cp -a stuff/etc $fs
37 chown -R root.root $fs
38 }
40 pre_install()
41 {
42 local root
43 root=$1
44 # Backup config file.
45 if [ -f $root/etc/slim.conf ]; then
46 cp $root/etc/slim.conf $root/etc/slim.conf.bak
47 fi
48 }
50 post_install()
51 {
52 local root
53 root=$1
54 # Restore original config.
55 if [ -f $root/etc/slim.conf.bak ]; then
56 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf
57 fi
58 local USER
59 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
60 [ -n "$USER" ] &&
61 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
62 }