wok view enlightenment/receipt @ rev 19294
sane-backends, scons, scrot, shell-fm, smake, soundtouch, wireless_tools: fix man or doc path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 06 16:30:34 2016 +0200 (2016-07-06) |
parents | 5d53e8ccbc8d |
children | 970c5ec9a60a |
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 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 -n "Adding enlightenment to /etc/slim.conf..."
72 sed -i "s/^sessions.*/sessions enlightenment,${res}xs/" \
73 /etc/slim.conf
74 status
75 fi
76 }
78 post_remove()
79 {
80 # Remove WM from SLIM available sessions.
81 if grep -q enlightenment "$1/etc/slim.conf"; then
82 sed -i s/enlightenment,// "$1/etc/slim.conf"
83 fi
84 }