wok-6.x view enlightenment/receipt @ rev 21725

updated puddletag (1.0.5 -> 1.2.0)
author Hans-G?nter Theisgen
date Wed Jun 12 15:27:49 2019 +0100 (2019-06-12)
parents 970c5ec9a60a
children 669f61f44760
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.gz"
9 LICENSE="BSD"
10 WEB_SITE="https://www.enlightenment.org/"
11 WGET_URL="http://download.enlightenment.org/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 # Rules to configure and make the package.
27 compile_rules()
28 {
29 export CFLAGS="$CFLAGS -fvisibility=hidden"
30 export LDFLAGS="$LDFLAGS -fvisibility=hidden"
31 ./configure \
32 --sysconfdir=/etc \
33 --disable-connman \
34 --disable-enlightenment-menu \
35 --disable-doc \
36 $CONFIGURE_ARGS &&
37 make $MAKEFLAGS && make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share/locale
44 # Use a modified sysactions.conf
45 cp -a $stuff/etc $fs
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/lib $fs/usr
49 cp -a $install/usr/share/enlightenment $fs/usr/share
50 cp -a $install/usr/share/xsessions $fs/usr/share
52 # Remove devel files *.a/*.la
53 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
54 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
56 # Remove backgrounds (1,6 Mb).
57 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
59 # locales
60 for locale in $LOCALES; do
61 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
62 done
63 }
65 post_install()
66 {
67 res=$(grep ^session < "$1/etc/slim.conf" | sed s/"sessions. *"// \
68 | sed s/,e17//)
69 # Adding WM to SLIM available sessions.
70 if ! echo "$res" | grep -q enlightenment; then
71 echo
72 echo -n "Adding enlightenment to /etc/slim.conf..."
73 sed -i "s/^sessions.*/sessions enlightenment,${res}xs/" \
74 /etc/slim.conf
75 status
76 fi
77 }
79 post_remove()
80 {
81 # Remove WM from SLIM available sessions.
82 if grep -q enlightenment "$1/etc/slim.conf"; then
83 sed -i s/enlightenment,// "$1/etc/slim.conf"
84 fi
85 }