wok view slim/receipt @ rev 17127
libQtGui: if no exists write ~/.config/Trolltech.conf
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Tue Sep 09 00:43:00 2014 +0200 (2014-09-09) |
parents | bc9334796734 |
children | ad3ee9bb3a44 |
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 sed -i 's|session$|& >/tmp/X-output|g' $fs/etc/slim.conf
57 chown -R root.root $fs
59 # slim-theme manager & default strings
60 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme
61 install -m644 $stuff/strings $fs/usr/share/slim/strings
62 }
64 post_install()
65 {
66 local USER
67 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
68 [ -n "$USER" ] &&
69 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
71 slim-theme -s base
72 }