wok-undigest annotate enlightenment/receipt @ rev 1197
Add pdfgrep
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat Aug 06 11:45:14 2016 +0100 (2016-08-06) |
parents | 3aca5516701d |
children |
rev | line source |
---|---|
domcox@1057 | 1 # SliTaz package receipt. |
domcox@1057 | 2 |
domcox@1057 | 3 PACKAGE="enlightenment" |
domcox@1057 | 4 SOURCE="enlightenment" |
domcox@1065 | 5 VERSION="0.18.0-alpha4" |
domcox@1057 | 6 CATEGORY="x-window" |
domcox@1057 | 7 SHORT_DESC="Enlightenment window manager with PAM support." |
domcox@1057 | 8 MAINTAINER="pankso@slitaz.org" |
domcox@1057 | 9 LICENSE="BSD" |
domcox@1057 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
domcox@1057 | 11 WEB_SITE="http://www.enlightenment.org/" |
domcox@1057 | 12 WGET_URL="http://download.enlightenment.org/rel/apps/$PACKAGE/$TARBALL" |
domcox@1057 | 13 PROVIDE="enlightenment:pam" |
domcox@1057 | 14 TAGS="e enlightenment wm window-manager" |
domcox@1057 | 15 LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW" |
domcox@1057 | 16 |
domcox@1057 | 17 # Add PAM and bluez support (enlightenment is smaller). |
domcox@1057 | 18 DEPENDS="elementary" |
pascal@1097 | 19 BUILD_DEPENDS="elementary-dev bluez-dev connman-dev pam-dev pm-utils \ |
pascal@1097 | 20 xcb-util-keysyms-dev" |
domcox@1057 | 21 SUGGESTED="bluez wpa_supplicant connman pm-utils" |
domcox@1057 | 22 |
domcox@1057 | 23 # Rules to configure and make the package. |
domcox@1057 | 24 compile_rules() |
domcox@1057 | 25 { |
domcox@1057 | 26 CFLAGS="$CFLAGS -fvisibility=hidden" |
domcox@1057 | 27 LDFLAGS="$LDFLAGS -fvisibility=hidden" |
domcox@1057 | 28 ./configure \ |
domcox@1057 | 29 --sysconfdir=/etc \ |
domcox@1057 | 30 --disable-doc \ |
domcox@1057 | 31 --build=${ARCH}-slitaz-gnulinux \ |
domcox@1057 | 32 $CONFIGURE_ARGS && |
domcox@1057 | 33 make $MAKEFLAGS && make install |
domcox@1057 | 34 } |
domcox@1057 | 35 |
domcox@1057 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@1057 | 37 genpkg_rules() |
domcox@1057 | 38 { |
domcox@1057 | 39 mkdir -p $fs/usr/lib $fs/usr/share |
domcox@1057 | 40 # Use a modified sysactions.conf |
domcox@1057 | 41 cp -a $stuff/etc $fs |
domcox@1057 | 42 |
domcox@1057 | 43 cp -a $install/usr/bin $fs/usr |
domcox@1057 | 44 cp -a $install/usr/lib/enlightenment $fs/usr/lib |
domcox@1057 | 45 cp -a $install/usr/share/enlightenment $fs/usr/share |
domcox@1057 | 46 cp -a $install/usr/share/xsessions $fs/usr/share |
domcox@1057 | 47 |
domcox@1057 | 48 # Remove devel files *.a/*.la |
domcox@1057 | 49 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a |
domcox@1057 | 50 |
domcox@1057 | 51 # Rm backgrouds (1,6 Mb) and desktop file already provides by other. |
domcox@1057 | 52 rm -rf $fs/usr/share/enlightenment/data/backgrounds/* |
domcox@1057 | 53 |
domcox@1057 | 54 # locales |
domcox@1057 | 55 for locale in $LOCALES; do |
domcox@1057 | 56 mv $install/usr/share/locale/$locale $fs/usr/share/locale |
domcox@1057 | 57 done |
domcox@1057 | 58 } |
domcox@1057 | 59 |
domcox@1057 | 60 post_install() |
domcox@1057 | 61 { |
domcox@1057 | 62 res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \ |
domcox@1057 | 63 | sed s/,e17//) |
domcox@1057 | 64 # Adding WM to SLIM available sessions. |
domcox@1057 | 65 if ! echo "$res" | grep -q enlightenment; then |
domcox@1057 | 66 echo -n "Adding enlightenment to /etc/slim.conf..." |
domcox@1057 | 67 sed -i "s/^sessions.*/sessions enlightenment,${res}/" \ |
domcox@1057 | 68 /etc/slim.conf |
domcox@1057 | 69 status |
domcox@1057 | 70 fi |
domcox@1057 | 71 } |
domcox@1057 | 72 |
domcox@1057 | 73 post_remove() |
domcox@1057 | 74 { |
domcox@1057 | 75 # Remove WM from SLIM available sessions. |
domcox@1057 | 76 if grep -q enlightenment $1/etc/slim.conf; then |
domcox@1057 | 77 sed -i s/enlightenement,// $1/etc/slim.conf |
domcox@1057 | 78 fi |
domcox@1057 | 79 } |