wok-next view slim/receipt @ rev 21079

emacs: update dependencies
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 22 14:46:21 2018 +0200 (2018-12-22)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="slim"
4 VERSION="1.3.6"
5 CATEGORY="x-window"
6 SHORT_DESC="Desktop-independent graphical login manager for X11"
7 MAINTAINER="devel@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="cmake libx11-dev freetype-dev libjpeg-turbo-dev zlib-dev \
16 libpng-dev fontconfig-dev libxft-dev libxrender-dev libxmu-dev \
17 pam-dev libunistring libxrandr-dev consolekit2-dev"
18 SPLIT="$PACKAGE-theme-default $PACKAGE" # $PACKAGE-pam:pam"
20 compile_rules() {
21 case "$SET" in
22 '') SET_ARGS='-DUSE_PAM=no';;
23 pam) SET_ARGS='-DUSE_PAM=yes';;
24 esac
26 mkdir build
27 cd build
28 cmake \
29 -DCMAKE_BUILD_TYPE=Release \
30 -DCMAKE_SKIP_RPATH=ON \
31 -DCMAKE_INSTALL_PREFIX=/usr \
32 -DUSE_CONSOLEKIT=yes \
33 -DX11_Xmu_LIB="/usr/lib/libXmu.so" \
34 -DX11_Xft_INCLUDE_PATH=/usr/include \
35 -DX11_Xmu_INCLUDE_PATH=/usr/include \
36 $SET_ARGS \
37 .. &&
38 make &&
39 make install || return 1
41 cp -r $stuff/themes $install/usr/share/slim
43 # Config file and rc script.
44 cp -a $stuff/etc $install
46 # slim-theme manager & default strings
47 install -m755 $stuff/slim-theme $install/usr/bin/slim-theme
48 install -m644 $stuff/strings $install/usr/share/slim/strings
50 chown -R root:root $install
51 }
53 genpkg_rules() {
54 case $PACKAGE in
55 slim-theme-default)
56 copy default/
57 CAT="customization|default theme bundled with SLiM"
58 DEPENDS="slim slitaz-configs-base"
59 ;;
60 slim)
61 copy @std @rm
62 DEPENDS="fontconfig freetype libjpeg-turbo libpng libx11 \
63 libxft libxmu libxrender zlib"
64 CONFIG_FILES="/etc/slim.conf"
65 SUGGESTED="slim-theme-default slitaz-configs"
66 ;;
67 slim-pam)
68 copy @std
69 rm -rf $fs/usr/share/slim/themes/default
70 DEPENDS="fontconfig freetype libjpeg-turbo libpng libx11 \
71 libxft libxmu libxrender zlib pam"
72 CONFIG_FILES="/etc/slim.conf"
73 SUGGESTED="slim-theme-default slitaz-configs"
74 PROVIDE="slim:pam"
75 CAT="x-window|PAM enabled"
76 ;;
77 esac
78 }
80 post_install_slim() {
81 local USER=$(awk -F: '/:1000:1000:/ { print $1 }' "$1/etc/passwd")
82 [ -n "$USER" ] &&
83 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
84 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf"
85 }
87 post_install_slim_pam() {
88 local USER=$(awk -F: '/:1000:1000:/ { print $1 }' "$1/etc/passwd")
89 [ -n "$USER" ] &&
90 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
91 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf"
92 }
94 post_install_slim_theme_default() {
95 chroot "$1/" slim-theme -sdefault
96 }
98 pre_remove_slim_theme_default() {
99 chroot "$1/" slim-theme -fdefault
100 }