wok-stable annotate slim/receipt @ rev 2091

Update libiconv dependancy in some games
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 28 16:41:23 2009 +0100 (2009-01-28)
parents bd6010223726
children c61177674d4d
rev   line source
pankso@263 1 # SliTaz package receipt.
pankso@263 2
pankso@263 3 PACKAGE="slim"
pascal@1424 4 VERSION="1.3.1"
pankso@263 5 CATEGORY="x-window"
pankso@263 6 SHORT_DESC="Desktop-independent graphical login manager for X11."
pankso@263 7 MAINTAINER="pankso@slitaz.org"
pascal@1477 8 DEPENDS="xorg jpeg libpng slitaz-configs"
pascal@1477 9 BUILD_DEPENDS="xorg-dev jpeg-dev libpng-dev xorg-libXft-dev"
pankso@263 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@263 11 WEB_SITE="http://slim.berlios.de"
pankso@263 12 WGET_URL="http://download.berlios.de/slim/$TARBALL"
pascal@1212 13 CONFIG_FILES="/etc/slim.conf"
pascal@1778 14 BUGS="Sometime needs more than 10 seconds to start (since HAL/DCOP addition)."
pankso@263 15
pankso@263 16 # Rules to configure and make the package.
pankso@263 17 compile_rules()
pankso@263 18 {
pankso@263 19 cd $src
pankso@263 20 sed -i "s|/usr/X11R6/include|/usr/include/xorg|g" Makefile
pankso@263 21 sed -i "s|/usr/X11R6/|/usr/|g" Makefile
pankso@263 22 make
pankso@263 23 }
pankso@263 24
pankso@263 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@263 26 genpkg_rules()
pankso@263 27 {
pankso@263 28 mkdir -p $fs/usr/bin $fs/usr/share/slim
pankso@263 29 cp -a $src/slim $fs/usr/bin
pankso@263 30
pankso@713 31 # Config file and rc script (theme is in slitaz-configs).
pankso@263 32 cp -a stuff/etc $fs
pankso@1090 33 chown -R root.root $fs
pankso@263 34 }
pankso@263 35
pankso@2053 36 pre_instal()
pankso@2053 37 {
pankso@2053 38 local root
pankso@2053 39 root=$1
pankso@2053 40 # Backup config file.
pankso@2053 41 if [ -f $root/etc/slim.conf ]; then
pankso@2053 42 cp $root/etc/slim.conf $root/etc/slim.conf.bak
pankso@2053 43 fi
pankso@2053 44 }
pankso@2053 45
pascal@1062 46 post_install()
pascal@1062 47 {
pankso@2053 48 local root
pankso@2053 49 root=$1
pankso@2053 50 # Restore original config.
pankso@2053 51 if [ -f $root/etc/slim.conf.bak ]; then
pankso@2053 52 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf
pankso@2053 53 fi
pascal@1784 54 local USER
pascal@1784 55 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
pascal@1784 56 [ -n "$USER" ] &&
pascal@1784 57 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
pascal@1062 58 }