wok-6.x annotate slim/receipt @ rev 3726
Update: slim (DEPENDS)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Tue Jul 21 17:14:54 2009 +0000 (2009-07-21) |
parents | 18db3f5da4e6 |
children | 996a788dda09 |
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" |
rcx@3726 | 8 DEPENDS="glibc-base gcc-lib-base expat fontconfig freetype libuuid zlib \ |
rcx@3726 | 9 jpeg libpng xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp \ |
rcx@3726 | 10 xorg-libXext xorg-libXft xorg-libXmu xorg-libXrender xorg-libXt" |
pascal@1477 | 11 BUILD_DEPENDS="xorg-dev jpeg-dev libpng-dev xorg-libXft-dev" |
pankso@2838 | 12 SUGGESTED="slim-theme-default slitaz-configs" |
pankso@263 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@263 | 14 WEB_SITE="http://slim.berlios.de" |
pankso@263 | 15 WGET_URL="http://download.berlios.de/slim/$TARBALL" |
pascal@1212 | 16 CONFIG_FILES="/etc/slim.conf" |
pascal@1778 | 17 BUGS="Sometime needs more than 10 seconds to start (since HAL/DCOP addition)." |
pankso@263 | 18 |
pankso@263 | 19 # Rules to configure and make the package. |
pankso@263 | 20 compile_rules() |
pankso@263 | 21 { |
pankso@263 | 22 cd $src |
pankso@263 | 23 sed -i "s|/usr/X11R6/include|/usr/include/xorg|g" Makefile |
pankso@263 | 24 sed -i "s|/usr/X11R6/|/usr/|g" Makefile |
pankso@263 | 25 make |
pankso@263 | 26 } |
pankso@263 | 27 |
pankso@263 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@263 | 29 genpkg_rules() |
pankso@263 | 30 { |
pankso@263 | 31 mkdir -p $fs/usr/bin $fs/usr/share/slim |
pankso@263 | 32 cp -a $src/slim $fs/usr/bin |
pankso@2862 | 33 cp -a stuff/themes $fs/usr/share/slim |
pankso@2838 | 34 # Config file and rc script. |
pankso@263 | 35 cp -a stuff/etc $fs |
pankso@1090 | 36 chown -R root.root $fs |
pankso@263 | 37 } |
pankso@263 | 38 |
pankso@3000 | 39 pre_install() |
pankso@2053 | 40 { |
pankso@2053 | 41 local root |
pankso@2053 | 42 root=$1 |
pankso@2053 | 43 # Backup config file. |
pankso@2053 | 44 if [ -f $root/etc/slim.conf ]; then |
pankso@2053 | 45 cp $root/etc/slim.conf $root/etc/slim.conf.bak |
pankso@2053 | 46 fi |
pankso@2053 | 47 } |
pankso@2053 | 48 |
pascal@1062 | 49 post_install() |
pascal@1062 | 50 { |
pankso@2053 | 51 local root |
pankso@2053 | 52 root=$1 |
pankso@2053 | 53 # Restore original config. |
pankso@2053 | 54 if [ -f $root/etc/slim.conf.bak ]; then |
pankso@2053 | 55 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf |
pankso@2053 | 56 fi |
pascal@1784 | 57 local USER |
pascal@1784 | 58 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd) |
pascal@1784 | 59 [ -n "$USER" ] && |
pascal@1784 | 60 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf |
pascal@1062 | 61 } |