wok-next view slim/receipt @ rev 20727

python-gevent-psycopg2: fix error "urllib2.HTTPError: HTTP Error 403: SSL is required"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon May 28 15:32:33 2018 +0300 (2018-05-28)
parents 0e7893ac206d
children e7a485521d6a
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 COOKOPTS="!pngquant op8"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/slim.berlios/$TARBALL"
15 BUILD_DEPENDS_arm="freetype-dev jpeg-dev libpng16-dev xorg-libXft-dev \
16 xorg-libXmu-dev pam-dev"
17 BUILD_DEPENDS="cmake xorg-libX11-dev freetype-dev libjpeg-turbo-dev zlib-dev \
18 libpng16-dev fontconfig-dev xorg-libXft-dev xorg-libXrender-dev xorg-libXmu-dev \
19 pam-dev"
20 SPLIT="slim-theme-default slim slim-pam:pam"
22 compile_rules() {
23 # Handle cross compilation
24 case "$ARCH" in
25 arm*)
26 INCL=/cross/$ARCH/sysroot/usr/include
27 LIBS=/cross/$ARCH/sysroot/usr/lib ;;
28 i?86|x86_64)
29 INCL=/usr/include
30 LIBS=/usr/lib ;;
31 esac
33 case "$SET" in
34 '') SET_ARGS='-DUSE_PAM=no';;
35 pam) SET_ARGS='-DUSE_PAM=yes';;
36 esac
38 mkdir build; cd build
39 cmake \
40 -DCMAKE_INSTALL_PREFIX=/usr \
41 -DX11_Xmu_LIB="$LIBS/libXmu.so" \
42 -DX11_Xft_INCLUDE_PATH=$INCL \
43 -DX11_Xmu_INCLUDE_PATH=$INCL \
44 $SET_ARGS \
45 .. &&
46 make &&
47 make install || return 1
49 cp -r $stuff/themes $install/usr/share/slim
51 # Config file and rc script.
52 cp -a $stuff/etc $install
54 # slim-theme manager & default strings
55 install -m755 $stuff/slim-theme $install/usr/bin/slim-theme
56 install -m644 $stuff/strings $install/usr/share/slim/strings
58 chown -R root:root $install
59 }
61 genpkg_rules() {
62 case $PACKAGE in
63 slim-theme-default)
64 copy default/
65 CAT="customization|default theme bundled with SLiM"
66 DEPENDS="slim slitaz-configs-base"
67 ;;
68 slim)
69 copy @std @rm
70 DEPENDS="fontconfig freetype libjpeg-turbo libpng16 xorg-libX11 \
71 xorg-libXft xorg-libXmu xorg-libXrender zlib"
72 CONFIG_FILES="/etc/slim.conf"
73 SUGGESTED="slim-theme-default slitaz-configs"
74 ;;
75 slim-pam)
76 copy @std
77 rm -rf $fs/usr/share/slim/themes/default
78 DEPENDS="fontconfig freetype libjpeg-turbo libpng16 xorg-libX11 \
79 xorg-libXft xorg-libXmu xorg-libXrender zlib pam"
80 CONFIG_FILES="/etc/slim.conf"
81 SUGGESTED="slim-theme-default slitaz-configs"
82 PROVIDE="slim:pam"
83 CAT="x-window|PAM enabled"
84 ;;
85 esac
86 }
88 post_install_slim() {
89 local USER=$(awk -F: '/:1000:1000:/ { print $1 }' "$1/etc/passwd")
90 [ -n "$USER" ] &&
91 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
92 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf"
93 }
95 post_install_slim_pam() {
96 local USER=$(awk -F: '/:1000:1000:/ { print $1 }' "$1/etc/passwd")
97 [ -n "$USER" ] &&
98 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
99 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf"
100 }
102 post_install_slim_theme_default() {
103 chroot "$1/" slim-theme -sdefault
104 }
106 pre_remove_slim_theme_default() {
107 chroot "$1/" slim-theme -fdefault
108 }