wok view enlightenment-pam/receipt @ rev 25249
updated python-websocket-client (0.57.0 -> 0.59.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jul 14 07:30:53 2022 +0100 (2022-07-14) |
parents | 669f61f44760 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment-pam"
4 SOURCE="enlightenment"
5 VERSION="0.17.6"
6 CATEGORY="x-window"
7 SHORT_DESC="Enlightenment window manager (E17) with PAM, Bluez and connman support."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="BSD"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="https://www.enlightenment.org/"
12 WGET_URL="https://download.enlightenment.org/__old/att/releases/$TARBALL"
13 PROVIDE="enlightenment:pam"
14 TAGS="e enlightenment window-manager"
15 LOCALES="cs da de el es fr fr_CH hu it pl pt pt_BR ru sl sv zh_CN zh_TW"
17 # Add PAM and bluez support (enlightenment is smaller).
18 DEPENDS="emotion efreet edbus alsa-lib pam xcb-util-keysyms"
19 BUILD_DEPENDS="emotion-dev efreet-dev edbus-dev
20 xcb-util-keysyms-dev alsa-lib-dev
21 bluez-dev connman-dev pam-dev pm-utils"
22 SUGGESTED="bluez wpa_supplicant connman pm-utils"
24 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - http://download.enlightenment.org/rel/libs/elementary/ 2>/dev/null | \
28 sed '/elementary-[0-9]/!d;/a[0-9].tar/d;s|.*elementary-||;s|.tar.*||' | sort -Vr | sed q
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 CFLAGS="$CFLAGS -fvisibility=hidden"
35 LDFLAGS="$LDFLAGS -fvisibility=hidden"
36 export LDFLAGS
38 ./configure \
39 --sysconfdir=/etc \
40 --disable-mount-hal \
41 --disable-doc \
42 --build=${ARCH}-slitaz-gnulinux \
43 $CONFIGURE_ARGS &&
44 make $MAKEFLAGS && make install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/lib $fs/usr/share/applications $fs/usr/share/locale
51 # Use a modified sysactions.conf
52 cp -a $stuff/etc $fs
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/lib/enlightenment $fs/usr/lib
56 cp -a $install/usr/share/enlightenment $fs/usr/share
57 cp -a $install/usr/share/xsessions/enlightenment.desktop $fs/usr/share/applications
59 # Remove devel files *.a/*.la
60 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a
61 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a
63 # Rm backgrouds (1,6 Mb) and desktop file already provides by other.
64 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
66 # locales
67 for locale in $LOCALES; do
68 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
69 done
70 }
72 post_install()
73 {
74 res=$(grep ^session < "$1/etc/slim.conf" | sed s/"sessions. *"// \
75 | sed s/,e17//)
76 # Adding WM to SLIM available sessions.
77 if ! echo "$res" | grep -q enlightenment; then
78 echo
79 echo -n "Adding enlightenment to /etc/slim.conf..."
80 sed -i "s/^sessions.*/sessions enlightenment,${res}/" \
81 /etc/slim.conf
82 status
83 fi
84 }
86 post_remove()
87 {
88 # Remove WM from SLIM available sessions.
89 if grep -q enlightenment "$1/etc/slim.conf"; then
90 sed -i s/enlightenement,// "$1/etc/slim.conf"
91 fi
92 }