wok-current annotate enlightenment/receipt @ rev 14994

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