wok-6.x annotate enlightenment/receipt @ rev 24740
updated libexif-gtk and libexif-gtk-dev (0.4.0 -> 0.5.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 16 10:07:05 2022 +0100 (2022-03-16) |
parents | 86790a278e70 |
children | 1be16cc1cd50 |
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" |
pascal@20421 | 10 WEB_SITE="https://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 |
pascal@24505 | 26 # What is the latest version available today? |
pascal@24505 | 27 current_version() |
pascal@24505 | 28 { |
pascal@24505 | 29 wget -O - http://download.enlightenment.org/rel/libs/elementary/ 2>/dev/null | \ |
pascal@24505 | 30 sed '/elementary-[0-9]/!d;/a[0-9].tar/d;s|.*elementary-||;s|.tar.*||' | sort -Vr | sed q |
pascal@24505 | 31 } |
pascal@24505 | 32 |
pankso@140 | 33 # Rules to configure and make the package. |
pankso@140 | 34 compile_rules() |
pankso@140 | 35 { |
pankso@16141 | 36 export CFLAGS="$CFLAGS -fvisibility=hidden" |
pankso@16141 | 37 export LDFLAGS="$LDFLAGS -fvisibility=hidden" |
pankso@10624 | 38 ./configure \ |
pankso@13647 | 39 --sysconfdir=/etc \ |
pankso@10624 | 40 --disable-connman \ |
pankso@13647 | 41 --disable-enlightenment-menu \ |
domcox@14313 | 42 --disable-doc \ |
pankso@10624 | 43 $CONFIGURE_ARGS && |
domcox@14684 | 44 make $MAKEFLAGS && make install |
pankso@140 | 45 } |
pankso@140 | 46 |
pankso@140 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@140 | 48 genpkg_rules() |
pankso@140 | 49 { |
al@16691 | 50 mkdir -p $fs/usr/share/locale |
pankso@165 | 51 # Use a modified sysactions.conf |
pankso@10529 | 52 cp -a $stuff/etc $fs |
pankso@843 | 53 |
pankso@13647 | 54 cp -a $install/usr/bin $fs/usr |
pankso@13647 | 55 cp -a $install/usr/lib $fs/usr |
pankso@13647 | 56 cp -a $install/usr/share/enlightenment $fs/usr/share |
pankso@13648 | 57 cp -a $install/usr/share/xsessions $fs/usr/share |
pankso@843 | 58 |
pankso@196 | 59 # Remove devel files *.a/*.la |
pankso@140 | 60 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a |
pankso@2917 | 61 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a |
pankso@843 | 62 |
al@16691 | 63 # Remove backgrounds (1,6 Mb). |
pankso@140 | 64 rm -rf $fs/usr/share/enlightenment/data/backgrounds/* |
domcox@14324 | 65 |
domcox@14324 | 66 # locales |
domcox@14324 | 67 for locale in $LOCALES; do |
al@16691 | 68 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale |
domcox@14324 | 69 done |
pankso@140 | 70 } |
pankso@140 | 71 |
pankso@2917 | 72 post_install() |
pankso@2917 | 73 { |
pascal@18730 | 74 res=$(grep ^session < "$1/etc/slim.conf" | sed s/"sessions. *"// \ |
domcox@14324 | 75 | sed s/,e17//) |
pankso@2917 | 76 # Adding WM to SLIM available sessions. |
domcox@14324 | 77 if ! echo "$res" | grep -q enlightenment; then |
pascal@20319 | 78 echo |
domcox@14324 | 79 echo -n "Adding enlightenment to /etc/slim.conf..." |
domcox@14328 | 80 sed -i "s/^sessions.*/sessions enlightenment,${res}xs/" \ |
domcox@14324 | 81 /etc/slim.conf |
pankso@2917 | 82 status |
pankso@2917 | 83 fi |
pankso@2917 | 84 } |
pankso@2917 | 85 |
pankso@2917 | 86 post_remove() |
pankso@2917 | 87 { |
pankso@2917 | 88 # Remove WM from SLIM available sessions. |
pascal@18730 | 89 if grep -q enlightenment "$1/etc/slim.conf"; then |
pascal@18730 | 90 sed -i s/enlightenment,// "$1/etc/slim.conf" |
pankso@2917 | 91 fi |
pankso@2917 | 92 } |