wok view slim/receipt @ rev 16255

Up socat (2.0.0-b7)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 04 16:24:21 2014 +0000 (2014-04-04)
parents 9a36cf269dc0
children 59d26358e983
line source
1 # SliTaz package receipt.
3 PACKAGE="slim"
4 VERSION="1.3.5"
5 CATEGORY="x-window"
6 SHORT_DESC="Desktop-independent graphical login manager for X11."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://slim.berlios.de/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://download.berlios.de/slim/$TARBALL"
12 CONFIG_FILES="/etc/slim.conf"
13 HOST_ARCH="i486 arm"
15 RELATED="slim-pam slim-theme-default" # don't forget to upgrade them too
16 SUGGESTED="slim-theme-default slitaz-configs"
17 DEPENDS="gcc-lib-base libjpeg libpng xorg-libXft xorg-libXmu"
18 BUILD_DEPENDS="freetype-dev jpeg-dev libpng-dev xorg-libXft-dev xorg-libXmu-dev"
20 # Handle cross compilation
21 case "$ARCH" in
22 i?86)
23 BUILD_DEPENDS="$BUILD_DEPENDS cmake"
24 INCL=/usr/include
25 LIBS=/usr/lib ;;
26 arm*)
27 INCL=/cross/$ARCH/sysroot/usr/include
28 LIBS=/cross/$ARCH/sysroot/usr/lib ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1
35 mkdir build; cd build
36 cmake \
37 -DCMAKE_INSTALL_PREFIX=/usr \
38 -DX11_Xmu_LIB="$LIBS/libXmu.so" \
39 -DX11_Xft_INCLUDE_PATH=${INCL} \
40 -DX11_Xmu_INCLUDE_PATH= ${INCL} \
41 .. &&
42 make &&
43 make DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share/slim
50 cp -a $install/etc $fs
51 cp -a $install/usr/bin $fs/usr
52 cp -a $stuff/themes $fs/usr/share/slim
54 # Config file and rc script.
55 cp -a $stuff/etc $fs
56 chown -R root.root $fs
58 # slim-theme manager
59 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme
60 }
62 post_install()
63 {
64 local USER
65 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
66 [ -n "$USER" ] &&
67 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
69 # In order to update the SLiM, we need to restart it.
70 # We can't just "/etc/init.d/slim restart" because it momentarily interrupts
71 # X session and the user will get a terrible console with strange letters.
72 printf '%40s\n' | tr ' ' '='
73 echo "In order to update the SLiM,"
74 echo "please, reboot your system!"
75 }