wok-next view slim/receipt @ rev 20035
geos: tiny edits
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Oct 22 19:26:43 2017 +0300 (2017-10-22) |
parents | 9e01bc6321ea |
children | 2ec88e5df2dd |
line source
1 # SliTaz package receipt v2.
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 HOST_ARCH="i486 arm"
11 COOKOPTS="!pngquant op8"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="$SF_MIRROR/slim.berlios/$TARBALL"
16 BUILD_DEPENDS_arm="freetype-dev jpeg-dev libpng-dev xorg-libXft-dev \
17 xorg-libXmu-dev"
18 BUILD_DEPENDS="cmake xorg-libX11-dev freetype-dev libjpeg-turbo-dev zlib-dev \
19 libpng16-dev fontconfig-dev xorg-libXft-dev xorg-libXrender-dev xorg-libXmu-dev"
20 SPLIT="slim-theme-default slim"
21 SIBLINGS="slim-pam"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # Handle cross compilation
27 case "$ARCH" in
28 i?86)
29 INCL=/usr/include
30 LIBS=/usr/lib ;;
31 arm*)
32 INCL=/cross/$ARCH/sysroot/usr/include
33 LIBS=/cross/$ARCH/sysroot/usr/lib ;;
34 esac
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 || exit 1
46 cp -r $stuff/themes $install/usr/share/slim
48 # Config file and rc script.
49 cp -a $stuff/etc $install
51 # slim-theme manager & default strings
52 install -m755 $stuff/slim-theme $install/usr/bin/slim-theme
53 install -m644 $stuff/strings $install/usr/share/slim/strings
55 chown -R root:root $install
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules() {
60 case $PACKAGE in
61 slim-theme-default)
62 CAT="customization|default theme bundled with SLiM"
63 copy default/
64 DEPENDS="slim slitaz-configs-base"
65 ;;
66 slim)
67 copy @std
68 remove_already_packed
69 DEPENDS="fontconfig freetype libjpeg-turbo libpng16 xorg-libX11 \
70 xorg-libXft xorg-libXmu xorg-libXrender zlib"
71 CONFIG_FILES="/etc/slim.conf"
72 SUGGESTED="slim-theme-default slitaz-configs"
73 ;;
74 esac
75 }
77 post_install_slim() {
78 local USER=$(awk -F: '/:1000:1000:/ { print $1 }' "$1/etc/passwd")
79 [ -n "$USER" ] &&
80 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
81 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf"
82 }
84 post_install_slim_theme_default() {
85 chroot "$1/" slim-theme -sdefault
86 }
88 pre_remove_slim_theme_default() {
89 chroot "$1/" slim-theme -fdefault
90 }