wok view slim/receipt @ rev 14894

libbsd: fill license
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 26 11:16:42 2013 +0000 (2013-07-26)
parents 77143f213b9b
children 1a0b3262dccf
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"
14 DEPENDS="gcc-lib-base libjpeg libpng xorg-libXft xorg-libXmu"
15 SUGGESTED="slim-theme-default slitaz-configs"
16 BUILD_DEPENDS="cmake freetype-dev jpeg-dev libpng-dev xorg-libXft-dev \
17 xorg-libXmu-dev"
18 RELATED="slim-pam slim-theme-default" # don't forget to upgrade them too
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1
24 mkdir build; cd build
25 cmake \
26 -DCMAKE_INSTALL_PREFIX=/usr \
27 -DX11_Xmu_LIB=-lXmu \
28 .. &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share/slim
37 cp -a $install/etc $fs
38 cp -a $install/usr/bin $fs/usr
39 cp -a $stuff/themes $fs/usr/share/slim
41 # Config file and rc script.
42 cp -a $stuff/etc $fs
43 chown -R root.root $fs
45 # slim-theme manager
46 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme
47 }
49 post_install()
50 {
51 local USER
52 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
53 [ -n "$USER" ] &&
54 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
56 # In order to update the SLiM, we need to restart it.
57 # We can't just "/etc/init.d/slim restart" because it momentarily interrupts
58 # X session and the user will get a terrible console with strange letters.
59 printf '%40s\n' | tr ' ' '='
60 echo "In order to update the SLiM,"
61 echo "please, reboot your system!"
62 }