wok annotate enlightenment/receipt @ rev 20319

Up tazlito (501)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 20 13:28:18 2018 +0200 (2018-05-20)
parents 9e01bc6321ea
children 86790a278e70
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"
al@17501 12 TAGS="e enlightenment window-manager"
pankso@16141 13 HOST_ARCH="i486 arm"
pankso@16141 14
al@16691 15 LOCALES="cs da de el es fr fr_CH hu it pl pt pt_BR ru sl sv zh_CN zh_TW"
pankso@16171 16 DEPENDS="eet evas ecore eeze emotion efreet edbus edje elementary alsa-lib \
pankso@16171 17 xcb-util-keysyms"
pankso@16171 18 BUILD_DEPENDS="eet-dev evas-dev ecore-dev eeze-dev emotion-dev efreet-dev \
pankso@16171 19 edbus-dev libelementary elementary-dev edje-dev ethumb-dev eio-dev \
pankso@16171 20 alsa-lib-dev xcb-util-keysyms-dev"
pankso@140 21
pankso@16141 22 case "$ARCH" in
pankso@16141 23 i?86) BUILD_DEPENDS="$BUILD_DEPENDS pm-utils" ;;
pankso@16141 24 esac
slaxemulator@10320 25
pankso@140 26 # Rules to configure and make the package.
pankso@140 27 compile_rules()
pankso@140 28 {
pankso@16141 29 export CFLAGS="$CFLAGS -fvisibility=hidden"
pankso@16141 30 export LDFLAGS="$LDFLAGS -fvisibility=hidden"
pankso@10624 31 ./configure \
pankso@13647 32 --sysconfdir=/etc \
pankso@10624 33 --disable-connman \
pankso@13647 34 --disable-enlightenment-menu \
domcox@14313 35 --disable-doc \
pankso@10624 36 $CONFIGURE_ARGS &&
domcox@14684 37 make $MAKEFLAGS && make install
pankso@140 38 }
pankso@140 39
pankso@140 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@140 41 genpkg_rules()
pankso@140 42 {
al@16691 43 mkdir -p $fs/usr/share/locale
pankso@165 44 # Use a modified sysactions.conf
pankso@10529 45 cp -a $stuff/etc $fs
pankso@843 46
pankso@13647 47 cp -a $install/usr/bin $fs/usr
pankso@13647 48 cp -a $install/usr/lib $fs/usr
pankso@13647 49 cp -a $install/usr/share/enlightenment $fs/usr/share
pankso@13648 50 cp -a $install/usr/share/xsessions $fs/usr/share
pankso@843 51
pankso@196 52 # Remove devel files *.a/*.la
pankso@140 53 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
pankso@2917 54 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
pankso@843 55
al@16691 56 # Remove backgrounds (1,6 Mb).
pankso@140 57 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
domcox@14324 58
domcox@14324 59 # locales
domcox@14324 60 for locale in $LOCALES; do
al@16691 61 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
domcox@14324 62 done
pankso@140 63 }
pankso@140 64
pankso@2917 65 post_install()
pankso@2917 66 {
pascal@18730 67 res=$(grep ^session < "$1/etc/slim.conf" | sed s/"sessions. *"// \
domcox@14324 68 | sed s/,e17//)
pankso@2917 69 # Adding WM to SLIM available sessions.
domcox@14324 70 if ! echo "$res" | grep -q enlightenment; then
pascal@20319 71 echo
domcox@14324 72 echo -n "Adding enlightenment to /etc/slim.conf..."
domcox@14328 73 sed -i "s/^sessions.*/sessions enlightenment,${res}xs/" \
domcox@14324 74 /etc/slim.conf
pankso@2917 75 status
pankso@2917 76 fi
pankso@2917 77 }
pankso@2917 78
pankso@2917 79 post_remove()
pankso@2917 80 {
pankso@2917 81 # Remove WM from SLIM available sessions.
pascal@18730 82 if grep -q enlightenment "$1/etc/slim.conf"; then
pascal@18730 83 sed -i s/enlightenment,// "$1/etc/slim.conf"
pankso@2917 84 fi
pankso@2917 85 }