wok annotate enlightenment-pam/receipt @ rev 24923
mutt: addgroup mail only when not already existing
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 12 16:45:14 2022 +0100 (2022-04-12) |
parents | 86790a278e70 |
children | 1be16cc1cd50 |
rev | line source |
---|---|
pascal@2600 | 1 # SliTaz package receipt. |
pascal@2600 | 2 |
pascal@2600 | 3 PACKAGE="enlightenment-pam" |
pascal@2600 | 4 SOURCE="enlightenment" |
pankso@16141 | 5 VERSION="0.17.6" |
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@14994 | 9 LICENSE="BSD" |
pascal@2600 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@20421 | 11 WEB_SITE="https://www.enlightenment.org/" |
domcox@14331 | 12 WGET_URL="http://download.enlightenment.org/releases/$TARBALL" |
pascal@2601 | 13 PROVIDE="enlightenment:pam" |
al@17501 | 14 TAGS="e enlightenment window-manager" |
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" |
pascal@2600 | 16 |
pankso@10621 | 17 # Add PAM and bluez support (enlightenment is smaller). |
domcox@14685 | 18 DEPENDS="emotion efreet edbus alsa-lib pam xcb-util-keysyms" |
domcox@14685 | 19 BUILD_DEPENDS="emotion-dev efreet-dev edbus-dev |
domcox@14685 | 20 xcb-util-keysyms-dev alsa-lib-dev |
domcox@14685 | 21 bluez-dev connman-dev pam-dev pm-utils" |
domcox@14685 | 22 SUGGESTED="bluez wpa_supplicant connman pm-utils" |
slaxemulator@10321 | 23 |
pascal@24505 | 24 # What is the latest version available today? |
pascal@24505 | 25 current_version() |
pascal@24505 | 26 { |
pascal@24505 | 27 wget -O - http://download.enlightenment.org/rel/libs/elementary/ 2>/dev/null | \ |
pascal@24505 | 28 sed '/elementary-[0-9]/!d;/a[0-9].tar/d;s|.*elementary-||;s|.tar.*||' | sort -Vr | sed q |
pascal@24505 | 29 } |
pascal@24505 | 30 |
pascal@2600 | 31 # Rules to configure and make the package. |
pascal@2600 | 32 compile_rules() |
pascal@2600 | 33 { |
domcox@14331 | 34 CFLAGS="$CFLAGS -fvisibility=hidden" |
domcox@14331 | 35 LDFLAGS="$LDFLAGS -fvisibility=hidden" |
domcox@14331 | 36 export LDFLAGS |
domcox@14685 | 37 |
domcox@14331 | 38 ./configure \ |
domcox@14331 | 39 --sysconfdir=/etc \ |
domcox@14685 | 40 --disable-mount-hal \ |
domcox@14331 | 41 --disable-doc \ |
domcox@14685 | 42 --build=${ARCH}-slitaz-gnulinux \ |
domcox@14331 | 43 $CONFIGURE_ARGS && |
domcox@14685 | 44 make $MAKEFLAGS && make install |
pascal@2600 | 45 } |
pascal@2600 | 46 |
pascal@2600 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2600 | 48 genpkg_rules() |
pascal@2600 | 49 { |
al@16691 | 50 mkdir -p $fs/usr/lib $fs/usr/share/applications $fs/usr/share/locale |
pascal@2600 | 51 # Use a modified sysactions.conf |
domcox@14331 | 52 cp -a $stuff/etc $fs |
pascal@2600 | 53 |
domcox@14331 | 54 cp -a $install/usr/bin $fs/usr |
domcox@14331 | 55 cp -a $install/usr/lib/enlightenment $fs/usr/lib |
domcox@14331 | 56 cp -a $install/usr/share/enlightenment $fs/usr/share |
domcox@14331 | 57 cp -a $install/usr/share/xsessions/enlightenment.desktop $fs/usr/share/applications |
pascal@2600 | 58 |
pascal@2600 | 59 # Remove devel files *.a/*.la |
pascal@2600 | 60 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a |
pankso@2917 | 61 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a |
pascal@2600 | 62 |
pankso@2917 | 63 # Rm backgrouds (1,6 Mb) and desktop file already provides by other. |
pascal@2600 | 64 rm -rf $fs/usr/share/enlightenment/data/backgrounds/* |
domcox@14331 | 65 |
domcox@14331 | 66 # locales |
domcox@14331 | 67 for locale in $LOCALES; do |
al@16691 | 68 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale |
domcox@14331 | 69 done |
pascal@2600 | 70 } |
pascal@2600 | 71 |
pankso@2917 | 72 post_install() |
pankso@2917 | 73 { |
pascal@18730 | 74 res=$(grep ^session < "$1/etc/slim.conf" | sed s/"sessions. *"// \ |
domcox@14331 | 75 | sed s/,e17//) |
pankso@2917 | 76 # Adding WM to SLIM available sessions. |
domcox@14331 | 77 if ! echo "$res" | grep -q enlightenment; then |
pascal@20319 | 78 echo |
domcox@14331 | 79 echo -n "Adding enlightenment to /etc/slim.conf..." |
domcox@14331 | 80 sed -i "s/^sessions.*/sessions enlightenment,${res}/" \ |
domcox@14331 | 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/enlightenement,// "$1/etc/slim.conf" |
pankso@2917 | 91 fi |
pankso@2917 | 92 } |