wok-next annotate enlightenment/receipt @ rev 14297

Up: embryo-dev (1.7.5)
author Dominique Corbex <domcox@slitaz.org>
date Sun Apr 07 10:08:46 2013 +0200 (2013-04-07)
parents 9ede97e4f5be
children 770504092440
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@13648 41 cp -a $install/usr/share/xsessions $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 }