wok-current view slim/receipt @ rev 16103

ARM: add dwm, dmenu, mpc, nmpc
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 18 22:35:00 2014 +0100 (2014-03-18)
parents d0948455b365
children ce28c89fc62b
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 case "$ARCH" in
21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS cmake" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1
28 mkdir build; cd build
29 cmake \
30 -DCMAKE_INSTALL_PREFIX=/usr \
31 -DX11_Xmu_LIB=-lXmu \
32 .. &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share/slim
41 cp -a $install/etc $fs
42 cp -a $install/usr/bin $fs/usr
43 cp -a $stuff/themes $fs/usr/share/slim
45 # Config file and rc script.
46 cp -a $stuff/etc $fs
47 chown -R root.root $fs
49 # slim-theme manager
50 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme
51 }
53 post_install()
54 {
55 local USER
56 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
57 [ -n "$USER" ] &&
58 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
60 # In order to update the SLiM, we need to restart it.
61 # We can't just "/etc/init.d/slim restart" because it momentarily interrupts
62 # X session and the user will get a terrible console with strange letters.
63 printf '%40s\n' | tr ' ' '='
64 echo "In order to update the SLiM,"
65 echo "please, reboot your system!"
66 }