wok annotate enlightenment/receipt @ rev 14865

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