wok-next view enlightenment/receipt @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="enlightenment"
4 VERSION="0.22.4"
5 CATEGORY="x-window"
6 SHORT_DESC="Enlightenment window manager"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.enlightenment.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://download.enlightenment.org/rel/apps/enlightenment/$TARBALL"
14 BUILD_DEPENDS="pam-dev bluez-dev gettext-dev efl-dev alsa-lib-dev pulseaudio-dev \
15 xcb-util-keysyms-dev pm-utils"
16 SPLIT="$PACKAGE-backgrounds $PACKAGE $PACKAGE-common $PACKAGE-dev \
17 $PACKAGE-pam:pam"
19 COOKOPTS="!menus !pixmaps"
21 compile_rules() {
22 case $SET in
23 '') SET_ARGS='--disable-pam';;
24 pam) SET_ARGS='--enable-pam';;
25 esac
27 ./configure \
28 --disable-doc \
29 $SET_ARGS \
30 $CONFIGURE_ARGS &&
31 fix libtool &&
32 make &&
33 make install || return 1
35 # Use a modified sysactions.conf
36 mv $install/etc/enlightenment/sysactions.conf $install/etc/enlightenment/sysactions.conf.orig
37 install -Dm644 $stuff/sysactions.conf $install/etc/enlightenment/sysactions.conf
39 # Move documentation
40 mkdir -p $install/usr/share/doc
41 mv $install/usr/share/enlightenment/doc $install/usr/share/doc/enlightenment
42 mv $install/usr/share/enlightenment/AUTHORS $install/usr/share/doc/enlightenment/
43 mv $install/usr/share/enlightenment/COPYING $install/usr/share/doc/enlightenment/
44 }
46 genpkg_rules() {
47 case $PACKAGE in
48 enlightenment-backgrounds)
49 copy backgrounds/
50 CAT="x-window|additional backgrounds"
51 ;;
52 enlightenment)
53 copy enlightenment enlightenment_ckpasswd
54 DEPENDS="enlightenment-common efl"
55 SUGGESTED="bluez wpa_supplicant connman pm-utils"
56 ;;
57 enlightenment-common)
58 copy @std @rm *.mo
59 DEPENDS="alsa-lib bluez efl pulseaudio libxcb \
60 xcb-util-keysyms"
61 CAT="x-window|common files for PAM and non-PAM packages"
62 ;;
63 enlightenment-dev)
64 copy @dev
65 DEPENDS="enlightenment efl-dev"
66 ;;
67 enlightenment-pam)
68 copy enlightenment enlightenment_ckpasswd
69 DEPENDS="enlightenment-common efl pam"
70 CAT="x-window|with PAM support"
71 PROVIDE="enlightenment:pam"
72 ;;
73 esac
74 TAGS="e enlightenment window-manager"
75 }
77 post_install_enlightenment() {
78 res=$(grep ^session < "$1/etc/slim.conf" | sed s/"sessions. *"// \
79 | sed s/,e17//)
80 # Adding WM to SLIM available sessions.
81 if ! echo "$res" | grep -q enlightenment; then
82 sed -i "s/^sessions.*/sessions enlightenment,${res}xs/" \
83 /etc/slim.conf
84 status
85 fi
86 }
88 post_remove_enlightenment() {
89 # Remove WM from SLIM available sessions.
90 if grep -q enlightenment "$1/etc/slim.conf"; then
91 sed -i s/enlightenment,// "$1/etc/slim.conf"
92 fi
93 }
95 post_install_enlightenment_pam() {
96 res=$(grep ^session < "$1/etc/slim.conf" | sed s/"sessions. *"// \
97 | sed s/,e17//)
98 # Adding WM to SLIM available sessions.
99 if ! echo "$res" | grep -q enlightenment; then
100 sed -i "s/^sessions.*/sessions enlightenment,${res}xs/" \
101 /etc/slim.conf
102 status
103 fi
104 }
106 post_remove_enlightenment_pam() {
107 # Remove WM from SLIM available sessions.
108 if grep -q enlightenment "$1/etc/slim.conf"; then
109 sed -i s/enlightenment,// "$1/etc/slim.conf"
110 fi
111 }