wok-current view slim/receipt @ rev 21927

updated socat (2.0.0-b7 -> 2.0.0-b8)
author Hans-G?nter Theisgen
date Sat Oct 05 21:31:52 2019 +0100 (2019-10-05)
parents 5b76fac69996
children ee53899c6189
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="https://sourceforge.net/projects/slim.berlios/"
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"
14 COOKOPTS="!pngquant op8"
16 RELATED="slim-pam slim-theme-default" # don't forget to upgrade them too
17 SUGGESTED="slim-theme-default slitaz-configs"
18 DEPENDS="gcc-lib-base libjpeg libpng xorg-libXft xorg-libXmu"
19 BUILD_DEPENDS="freetype-dev jpeg-dev libpng-dev xorg-libXft-dev xorg-libXmu-dev"
21 # Handle cross compilation
22 case "$ARCH" in
23 i?86)
24 BUILD_DEPENDS="$BUILD_DEPENDS cmake"
25 INCL=/usr/include
26 LIBS=/usr/lib ;;
27 arm*)
28 INCL=/cross/$ARCH/sysroot/usr/include
29 LIBS=/cross/$ARCH/sysroot/usr/lib ;;
30 esac
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1
36 mkdir build; cd build
37 cmake \
38 -DCMAKE_INSTALL_PREFIX=/usr \
39 -DX11_Xmu_LIB="$LIBS/libXmu.so" \
40 -DX11_Xft_INCLUDE_PATH=${INCL} \
41 -DX11_Xmu_INCLUDE_PATH= ${INCL} \
42 .. &&
43 make &&
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share/slim
51 cp -a $install/etc $fs
52 cp -a $install/usr/bin $fs/usr
53 cp -a $stuff/themes $fs/usr/share/slim
55 # Config file and rc script.
56 cp -a $stuff/etc $fs
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"
70 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf"
71 }
73 testsuite() { ldd $install/usr/bin/slim; }