wok-6.x view enlightenment/receipt @ rev 25496
Up expat (2.5.0), CVE-2022-43680. Again.
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 02 10:26:08 2022 +0000 (23 months ago) |
parents | 669f61f44760 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment"
4 VERSION="0.17.6"
5 CATEGORY="x-window"
6 SHORT_DESC="Enlightenment window manager (E17)."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 LICENSE="BSD"
10 WEB_SITE="https://www.enlightenment.org/"
11 WGET_URL="https://download.enlightenment.org/__old/att/releases/$TARBALL"
12 TAGS="e enlightenment window-manager"
13 HOST_ARCH="i486 arm"
15 LOCALES="cs da de el es fr fr_CH hu it pl pt pt_BR ru sl sv zh_CN zh_TW"
16 DEPENDS="eet evas ecore eeze emotion efreet edbus edje elementary alsa-lib \
17 xcb-util-keysyms"
18 BUILD_DEPENDS="eet-dev evas-dev ecore-dev eeze-dev emotion-dev efreet-dev \
19 edbus-dev libelementary elementary-dev edje-dev ethumb-dev eio-dev \
20 alsa-lib-dev xcb-util-keysyms-dev"
22 case "$ARCH" in
23 i?86) BUILD_DEPENDS="$BUILD_DEPENDS pm-utils" ;;
24 esac
26 # What is the latest version available today?
27 current_version()
28 {
29 wget -O - http://download.enlightenment.org/rel/libs/elementary/ 2>/dev/null | \
30 sed '/elementary-[0-9]/!d;/a[0-9].tar/d;s|.*elementary-||;s|.tar.*||' | sort -Vr | sed q
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 export CFLAGS="$CFLAGS -fvisibility=hidden"
37 export LDFLAGS="$LDFLAGS -fvisibility=hidden"
38 ./configure \
39 --sysconfdir=/etc \
40 --disable-connman \
41 --disable-enlightenment-menu \
42 --disable-doc \
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/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 $fs/usr
56 cp -a $install/usr/share/enlightenment $fs/usr/share
57 cp -a $install/usr/share/xsessions $fs/usr/share
59 # Remove devel files *.a/*.la
60 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
61 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
63 # Remove backgrounds (1,6 Mb).
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}xs/" \
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/enlightenment,// "$1/etc/slim.conf"
91 fi
92 }