wok-6.x view slim/receipt @ rev 14149

cookutils: up 3.1.3 (with bazaar support)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Mar 04 09:49:43 2013 +0000 (2013-03-04)
parents 73641efed1cc
children d0948455b365
line source
1 # SliTaz package receipt.
3 PACKAGE="slim"
4 VERSION="1.3.3" # 1.3.4
5 CATEGORY="x-window"
6 SHORT_DESC="Desktop-independent graphical login manager for X11."
7 MAINTAINER="pankso@slitaz.org"
8 SUGGESTED="slim-theme-default slitaz-configs"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://slim.berlios.de"
11 WGET_URL="http://download.berlios.de/slim/$TARBALL"
12 CONFIG_FILES="/etc/slim.conf"
14 DEPENDS="glibc-base gcc-lib-base expat fontconfig freetype util-linux-uuid \
15 zlib jpeg libpng xorg-libXft xorg-libXmu"
16 BUILD_DEPENDS="xorg-libXft-dev xorg-libXmu-dev jpeg-dev libpng-dev cmake"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 #patch -p1 < $stuff/NoPwdForCmd.patch || return 1
23 cmake -DCMAKE_INSTALL_PREFIX=/usr . &&
24 make && make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/share/slim
31 cp -a $stuff/themes $fs/usr/share/slim
32 cp -a $install/usr/bin $fs/usr
34 # Config file and rc script.
35 cp -a $stuff/etc $fs
36 chown -R root.root $fs
37 }
39 pre_install()
40 {
41 local root
42 root=$1
43 # Backup config file.
44 if [ -f $root/etc/slim.conf ]; then
45 cp $root/etc/slim.conf $root/etc/slim.conf.bak
46 fi
47 }
49 post_install()
50 {
51 local root
52 root=$1
53 # Restore original config.
54 if [ -f $root/etc/slim.conf.bak ]; then
55 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf
56 fi
57 local USER
58 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
59 [ -n "$USER" ] &&
60 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
61 }