wok view enlightenment/receipt @ rev 13818

tazbug-website: fix genpkg_rules (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 06 18:21:06 2013 +0100 (2013-01-06)
parents 9ede97e4f5be
children 770504092440
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment"
4 VERSION="0.17.0-alpha2"
5 CATEGORY="x-window"
6 SHORT_DESC="Enlightenment window manager (E17)."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.enlightenment.org/"
10 WGET_URL="http://download.enlightenment.org/releases/$TARBALL"
11 TAGS="wm window-manager"
12 TAGS="e17"
14 DEPENDS="eina eet ecore evas edje efreet edbus alsa-lib embryo eio emotion \
15 eeze xcb-util-keysyms"
16 BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev edje-dev efreet-dev
17 edbus-dev alsa-lib-dev lua5.1-dev embryo-dev eio-dev emotion-dev eeze-dev \
18 xcb-util-keysyms-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ./configure \
24 --sysconfdir=/etc \
25 --disable-connman \
26 --disable-enlightenment-menu \
27 $CONFIGURE_ARGS &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share
35 # Use a modified sysactions.conf
36 cp -a $stuff/etc $fs
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib $fs/usr
40 cp -a $install/usr/share/enlightenment $fs/usr/share
41 cp -a $install/usr/share/xsessions $fs/usr/share
43 # Remove devel files *.a/*.la
44 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
45 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
47 # Rm backgrouds (1,6 Mb).
48 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
49 }
51 post_install()
52 {
53 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
54 # Adding WM to SLIM available sessions.
55 if ! echo "$res" | grep -q e17; then
56 echo -n "Adding e17 to /etc/slim.conf..."
57 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf
58 status
59 fi
60 }
62 post_remove()
63 {
64 # Remove WM from SLIM available sessions.
65 if grep -q e17 $1/etc/slim.conf; then
66 sed -i s/,e17// $1/etc/slim.conf
67 fi
68 }