wok-next view slim/receipt @ rev 18509

qtpanel: description.txt: be markdown-friendly
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Oct 22 19:03:32 2015 +0300 (2015-10-22)
parents 46feabc9c92a
children 9e01bc6321ea
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 & default strings
59 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme
60 install -m644 $stuff/strings $fs/usr/share/slim/strings
61 }
63 post_install()
64 {
65 local USER
66 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
67 [ -n "$USER" ] &&
68 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
69 sed -i 's|>/tmp/X-output||' $1/etc/slim.conf
70 }