wok-6.x annotate enlightenment-pam/receipt @ rev 14520
linux64: update modules64.list
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 16 21:55:34 2013 +0200 (2013-05-16) |
parents | 15fb93be1912 |
children | 868bc1b2a056 |
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" |
domcox@14425 | 13 TAGS="e enlightenment wm window-manager" |
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@14425 | 17 DEPENDS="emotion efreet edbus eeze alsa-lib connman pam xcb-util-keysyms" |
domcox@14425 | 18 BUILD_DEPENDS="emotion-dev efreet-dev edbus-dev eeze-dev |
domcox@14425 | 19 alsa-lib-dev bluez-dev connman-dev pam-dev pm-utils xcb-util-keysyms-dev" |
slaxemulator@10321 | 20 |
pascal@2600 | 21 # Rules to configure and make the package. |
pascal@2600 | 22 compile_rules() |
pascal@2600 | 23 { |
domcox@14331 | 24 CFLAGS="$CFLAGS -fvisibility=hidden" |
domcox@14331 | 25 LDFLAGS="$LDFLAGS -fvisibility=hidden" |
domcox@14331 | 26 export LDFLAGS |
domcox@14331 | 27 ./configure \ |
domcox@14331 | 28 --sysconfdir=/etc \ |
domcox@14331 | 29 --disable-doc \ |
domcox@14331 | 30 $CONFIGURE_ARGS && |
domcox@14331 | 31 make && make install |
pascal@2600 | 32 } |
pascal@2600 | 33 |
pascal@2600 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2600 | 35 genpkg_rules() |
pascal@2600 | 36 { |
domcox@14331 | 37 mkdir -p $fs/usr/lib $fs/usr/share/applications |
pascal@2600 | 38 # Use a modified sysactions.conf |
domcox@14331 | 39 cp -a $stuff/etc $fs |
pascal@2600 | 40 |
domcox@14331 | 41 cp -a $install/usr/bin $fs/usr |
domcox@14331 | 42 cp -a $install/usr/lib/enlightenment $fs/usr/lib |
domcox@14331 | 43 cp -a $install/usr/share/enlightenment $fs/usr/share |
domcox@14331 | 44 cp -a $install/usr/share/xsessions/enlightenment.desktop $fs/usr/share/applications |
pascal@2600 | 45 |
pascal@2600 | 46 # Remove devel files *.a/*.la |
pascal@2600 | 47 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a |
pankso@2917 | 48 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a |
pascal@2600 | 49 |
pankso@2917 | 50 # Rm backgrouds (1,6 Mb) and desktop file already provides by other. |
pascal@2600 | 51 rm -rf $fs/usr/share/enlightenment/data/backgrounds/* |
domcox@14331 | 52 |
domcox@14331 | 53 # locales |
domcox@14331 | 54 for locale in $LOCALES; do |
domcox@14331 | 55 mv $install/usr/share/locale/$locale $fs/usr/share/locale |
domcox@14331 | 56 done |
pascal@2600 | 57 } |
pascal@2600 | 58 |
pankso@2917 | 59 post_install() |
pankso@2917 | 60 { |
domcox@14331 | 61 res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \ |
domcox@14331 | 62 | sed s/,e17//) |
pankso@2917 | 63 # Adding WM to SLIM available sessions. |
domcox@14331 | 64 if ! echo "$res" | grep -q enlightenment; then |
domcox@14331 | 65 echo -n "Adding enlightenment to /etc/slim.conf..." |
domcox@14331 | 66 sed -i "s/^sessions.*/sessions enlightenment,${res}/" \ |
domcox@14331 | 67 /etc/slim.conf |
pankso@2917 | 68 status |
pankso@2917 | 69 fi |
pankso@2917 | 70 } |
pankso@2917 | 71 |
pankso@2917 | 72 post_remove() |
pankso@2917 | 73 { |
pankso@2917 | 74 # Remove WM from SLIM available sessions. |
domcox@14331 | 75 if grep -q enlightenment $1/etc/slim.conf; then |
domcox@14331 | 76 sed -i s/enlightenement,// $1/etc/slim.conf |
pankso@2917 | 77 fi |
pankso@2917 | 78 } |