wok annotate enlightenment/receipt @ rev 16141

ARM: add enlightenment
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 26 09:44:30 2014 +0100 (2014-03-26)
parents 25b2c31e807f
children 68f00cd672fd
rev   line source
pankso@140 1 # SliTaz package receipt.
pankso@140 2
pankso@140 3 PACKAGE="enlightenment"
pankso@16141 4 VERSION="0.17.6"
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"
pascal@14994 9 LICENSE="BSD"
pankso@140 10 WEB_SITE="http://www.enlightenment.org/"
pankso@13647 11 WGET_URL="http://download.enlightenment.org/releases/$TARBALL"
domcox@14424 12 TAGS="e enlightenment wm window-manager"
pankso@16141 13 HOST_ARCH="i486 arm"
pankso@16141 14
domcox@14324 15 LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW"
pankso@16141 16 DEPENDS="emotion efreet edbus alsa-lib xcb-util-keysyms"
pankso@16141 17 BUILD_DEPENDS="emotion-dev efreet-dev edbus-dev alsa-lib-dev \
pankso@16141 18 xcb-util-keysyms-dev"
pankso@140 19
pankso@16141 20 case "$ARCH" in
pankso@16141 21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS pm-utils" ;;
pankso@16141 22 esac
slaxemulator@10320 23
pankso@140 24 # Rules to configure and make the package.
pankso@140 25 compile_rules()
pankso@140 26 {
pankso@16141 27 export CFLAGS="$CFLAGS -fvisibility=hidden"
pankso@16141 28 export LDFLAGS="$LDFLAGS -fvisibility=hidden"
pankso@10624 29 ./configure \
pankso@13647 30 --sysconfdir=/etc \
pankso@10624 31 --disable-connman \
pankso@13647 32 --disable-enlightenment-menu \
domcox@14313 33 --disable-doc \
pankso@10624 34 $CONFIGURE_ARGS &&
domcox@14684 35 make $MAKEFLAGS && make install
pankso@140 36 }
pankso@140 37
pankso@140 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@140 39 genpkg_rules()
pankso@140 40 {
pankso@196 41 mkdir -p $fs/usr/share
pankso@165 42 # Use a modified sysactions.conf
pankso@10529 43 cp -a $stuff/etc $fs
pankso@843 44
pankso@13647 45 cp -a $install/usr/bin $fs/usr
pankso@13647 46 cp -a $install/usr/lib $fs/usr
pankso@13647 47 cp -a $install/usr/share/enlightenment $fs/usr/share
pankso@13648 48 cp -a $install/usr/share/xsessions $fs/usr/share
pankso@843 49
pankso@196 50 # Remove devel files *.a/*.la
pankso@140 51 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
pankso@2917 52 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
pankso@843 53
pankso@140 54 # Rm backgrouds (1,6 Mb).
pankso@140 55 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
domcox@14324 56
domcox@14324 57 # locales
domcox@14324 58 for locale in $LOCALES; do
domcox@14324 59 mv $install/usr/share/locale/$locale $fs/usr/share/locale
domcox@14324 60 done
pankso@140 61 }
pankso@140 62
pankso@2917 63 post_install()
pankso@2917 64 {
domcox@14324 65 res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \
domcox@14324 66 | sed s/,e17//)
pankso@2917 67 # Adding WM to SLIM available sessions.
domcox@14324 68 if ! echo "$res" | grep -q enlightenment; then
domcox@14324 69 echo -n "Adding enlightenment to /etc/slim.conf..."
domcox@14328 70 sed -i "s/^sessions.*/sessions enlightenment,${res}xs/" \
domcox@14324 71 /etc/slim.conf
pankso@2917 72 status
pankso@2917 73 fi
pankso@2917 74 }
pankso@2917 75
pankso@2917 76 post_remove()
pankso@2917 77 {
pankso@2917 78 # Remove WM from SLIM available sessions.
domcox@14328 79 if grep -q enlightenment $1/etc/slim.conf; then
domcox@14328 80 sed -i s/enlightenment,// $1/etc/slim.conf
pankso@2917 81 fi
pankso@2917 82 }