wok view enlightenment/receipt @ rev 11682

Up: git to 1.7.9.1. Add git-daemon so the user can run a web daemon of git repos.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 18 08:37:39 2012 -0500 (2012-02-18)
parents fe57bf03de94
children 9ede97e4f5be
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment"
4 VERSION="0.16.999.55225"
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/snapshots/2010-12-03/$TARBALL"
11 TAGS="wm window-manager"
12 TAGS="e17"
14 DEPENDS="eina eet ecore evas edje efreet edbus alsa-lib"
15 BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev edje-dev efreet-dev
16 edbus-dev alsa-lib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --disable-connman \
23 --disable-bluez \
24 $CONFIGURE_ARGS &&
25 make && make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share
32 # Use a modified sysactions.conf
33 cp -a $stuff/etc $fs
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/lib $fs/usr
37 cp -a $_pkg/usr/share/enlightenment $fs/usr/share
39 # Remove devel files *.a/*.la
40 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
41 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
43 # Rm backgrouds (1,6 Mb).
44 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
45 }
47 post_install()
48 {
49 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
50 # Adding WM to SLIM available sessions.
51 if ! echo "$res" | grep -q e17; then
52 echo -n "Adding e17 to /etc/slim.conf..."
53 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf
54 status
55 fi
56 }
58 post_remove()
59 {
60 # Remove WM from SLIM available sessions.
61 if grep -q e17 $1/etc/slim.conf; then
62 sed -i s/,e17// $1/etc/slim.conf
63 fi
64 }