wok view slim/receipt @ rev 16711

Up: tzdata (2014d)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed May 28 22:28:18 2014 +0300 (2014-05-28)
parents 784241c8e52c
children bc9334796734
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
59 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme
60 }
62 post_install()
63 {
64 local USER
65 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
66 [ -n "$USER" ] &&
67 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
68 }