wok annotate enlightenment-pam/receipt @ rev 14331
Up: enlightenment-pam (0.17.2.1)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Fri Apr 12 19:59:24 2013 +0200 (2013-04-12) |
parents | fe57bf03de94 |
children | 5d218ebd670e |
rev | line source |
---|---|
pascal@2600 | 1 # SliTaz package receipt. |
pascal@2600 | 2 |
pascal@2600 | 3 PACKAGE="enlightenment-pam" |
pascal@2600 | 4 SOURCE="enlightenment" |
domcox@14331 | 5 VERSION="0.17.2.1" |
pascal@2600 | 6 CATEGORY="x-window" |
pankso@10621 | 7 SHORT_DESC="Enlightenment window manager (E17) with PAM, Bluez and connman support." |
pascal@2600 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@2600 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2600 | 10 WEB_SITE="http://www.enlightenment.org/" |
domcox@14331 | 11 WGET_URL="http://download.enlightenment.org/releases/$TARBALL" |
pascal@2601 | 12 PROVIDE="enlightenment:pam" |
pankso@10621 | 13 TAGS="e17" |
domcox@14331 | 14 LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW" |
pascal@2600 | 15 |
pankso@10621 | 16 # Add PAM and bluez support (enlightenment is smaller). |
domcox@14331 | 17 DEPENDS="eina eet ecore evas edje eio efreet edbus eeze alsa-lib pam bluez connman xcb-util-keysyms |
domcox@14331 | 18 emotion" |
domcox@14331 | 19 BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev edje-dev eio-dev efreet-dev eeze-dev emotion-dev |
domcox@14331 | 20 edbus-dev alsa-lib-dev pam-dev bluez-dev connman-dev xcb-util-keysyms-dev pm-utils" |
slaxemulator@10321 | 21 |
pascal@2600 | 22 # Rules to configure and make the package. |
pascal@2600 | 23 compile_rules() |
pascal@2600 | 24 { |
domcox@14331 | 25 CFLAGS="$CFLAGS -fvisibility=hidden" |
domcox@14331 | 26 LDFLAGS="$LDFLAGS -fvisibility=hidden" |
domcox@14331 | 27 export LDFLAGS |
domcox@14331 | 28 ./configure \ |
domcox@14331 | 29 --sysconfdir=/etc \ |
domcox@14331 | 30 --disable-doc \ |
domcox@14331 | 31 $CONFIGURE_ARGS && |
domcox@14331 | 32 make && make install |
pascal@2600 | 33 } |
pascal@2600 | 34 |
pascal@2600 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2600 | 36 genpkg_rules() |
pascal@2600 | 37 { |
domcox@14331 | 38 mkdir -p $fs/usr/lib $fs/usr/share/applications |
pascal@2600 | 39 # Use a modified sysactions.conf |
domcox@14331 | 40 cp -a $stuff/etc $fs |
pascal@2600 | 41 |
domcox@14331 | 42 cp -a $install/usr/bin $fs/usr |
domcox@14331 | 43 cp -a $install/usr/lib/enlightenment $fs/usr/lib |
domcox@14331 | 44 cp -a $install/usr/share/enlightenment $fs/usr/share |
domcox@14331 | 45 cp -a $install/usr/share/xsessions/enlightenment.desktop $fs/usr/share/applications |
pascal@2600 | 46 |
pascal@2600 | 47 # Remove devel files *.a/*.la |
pascal@2600 | 48 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a |
pankso@2917 | 49 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a |
pascal@2600 | 50 |
pankso@2917 | 51 # Rm backgrouds (1,6 Mb) and desktop file already provides by other. |
pascal@2600 | 52 rm -rf $fs/usr/share/enlightenment/data/backgrounds/* |
domcox@14331 | 53 |
domcox@14331 | 54 # locales |
domcox@14331 | 55 for locale in $LOCALES; do |
domcox@14331 | 56 mv $install/usr/share/locale/$locale $fs/usr/share/locale |
domcox@14331 | 57 done |
pascal@2600 | 58 } |
pascal@2600 | 59 |
pankso@2917 | 60 post_install() |
pankso@2917 | 61 { |
domcox@14331 | 62 res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \ |
domcox@14331 | 63 | sed s/,e17//) |
pankso@2917 | 64 # Adding WM to SLIM available sessions. |
domcox@14331 | 65 if ! echo "$res" | grep -q enlightenment; then |
domcox@14331 | 66 echo -n "Adding enlightenment to /etc/slim.conf..." |
domcox@14331 | 67 sed -i "s/^sessions.*/sessions enlightenment,${res}/" \ |
domcox@14331 | 68 /etc/slim.conf |
pankso@2917 | 69 status |
pankso@2917 | 70 fi |
pankso@2917 | 71 } |
pankso@2917 | 72 |
pankso@2917 | 73 post_remove() |
pankso@2917 | 74 { |
pankso@2917 | 75 # Remove WM from SLIM available sessions. |
domcox@14331 | 76 if grep -q enlightenment $1/etc/slim.conf; then |
domcox@14331 | 77 sed -i s/enlightenement,// $1/etc/slim.conf |
pankso@2917 | 78 fi |
pankso@2917 | 79 } |