wok-current annotate enlightenment/receipt @ rev 13647

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