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