wok-current view enlightenment/receipt @ rev 16154

remove libtaz, see http://hg.slitaz.org/slitaz-dev-tools/rev/712c188572fc
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 28 14:10:02 2014 +0000 (2014-03-28)
parents 25b2c31e807f
children 68f00cd672fd
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="http://www.enlightenment.org/"
11 WGET_URL="http://download.enlightenment.org/releases/$TARBALL"
12 TAGS="e enlightenment wm window-manager"
13 HOST_ARCH="i486 arm"
15 LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW"
16 DEPENDS="emotion efreet edbus alsa-lib xcb-util-keysyms"
17 BUILD_DEPENDS="emotion-dev efreet-dev edbus-dev alsa-lib-dev \
18 xcb-util-keysyms-dev"
20 case "$ARCH" in
21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS pm-utils" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export CFLAGS="$CFLAGS -fvisibility=hidden"
28 export LDFLAGS="$LDFLAGS -fvisibility=hidden"
29 ./configure \
30 --sysconfdir=/etc \
31 --disable-connman \
32 --disable-enlightenment-menu \
33 --disable-doc \
34 $CONFIGURE_ARGS &&
35 make $MAKEFLAGS && make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share
42 # Use a modified sysactions.conf
43 cp -a $stuff/etc $fs
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib $fs/usr
47 cp -a $install/usr/share/enlightenment $fs/usr/share
48 cp -a $install/usr/share/xsessions $fs/usr/share
50 # Remove devel files *.a/*.la
51 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
52 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
54 # Rm backgrouds (1,6 Mb).
55 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
57 # locales
58 for locale in $LOCALES; do
59 mv $install/usr/share/locale/$locale $fs/usr/share/locale
60 done
61 }
63 post_install()
64 {
65 res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \
66 | sed s/,e17//)
67 # Adding WM to SLIM available sessions.
68 if ! echo "$res" | grep -q enlightenment; then
69 echo -n "Adding enlightenment to /etc/slim.conf..."
70 sed -i "s/^sessions.*/sessions enlightenment,${res}xs/" \
71 /etc/slim.conf
72 status
73 fi
74 }
76 post_remove()
77 {
78 # Remove WM from SLIM available sessions.
79 if grep -q enlightenment $1/etc/slim.conf; then
80 sed -i s/enlightenment,// $1/etc/slim.conf
81 fi
82 }