wok-6.x annotate enlightenment-pam/receipt @ rev 23346

updated perl-http-server-simple (0.44 -> 0.52)
author Hans-G?nter Theisgen
date Tue Mar 31 09:24:52 2020 +0100 (2020-03-31)
parents 970c5ec9a60a
children 669f61f44760
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@2600 24 # Rules to configure and make the package.
pascal@2600 25 compile_rules()
pascal@2600 26 {
domcox@14331 27 CFLAGS="$CFLAGS -fvisibility=hidden"
domcox@14331 28 LDFLAGS="$LDFLAGS -fvisibility=hidden"
domcox@14331 29 export LDFLAGS
domcox@14685 30
domcox@14331 31 ./configure \
domcox@14331 32 --sysconfdir=/etc \
domcox@14685 33 --disable-mount-hal \
domcox@14331 34 --disable-doc \
domcox@14685 35 --build=${ARCH}-slitaz-gnulinux \
domcox@14331 36 $CONFIGURE_ARGS &&
domcox@14685 37 make $MAKEFLAGS && make install
pascal@2600 38 }
pascal@2600 39
pascal@2600 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2600 41 genpkg_rules()
pascal@2600 42 {
al@16691 43 mkdir -p $fs/usr/lib $fs/usr/share/applications $fs/usr/share/locale
pascal@2600 44 # Use a modified sysactions.conf
domcox@14331 45 cp -a $stuff/etc $fs
pascal@2600 46
domcox@14331 47 cp -a $install/usr/bin $fs/usr
domcox@14331 48 cp -a $install/usr/lib/enlightenment $fs/usr/lib
domcox@14331 49 cp -a $install/usr/share/enlightenment $fs/usr/share
domcox@14331 50 cp -a $install/usr/share/xsessions/enlightenment.desktop $fs/usr/share/applications
pascal@2600 51
pascal@2600 52 # Remove devel files *.a/*.la
pascal@2600 53 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a
pankso@2917 54 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a
pascal@2600 55
pankso@2917 56 # Rm backgrouds (1,6 Mb) and desktop file already provides by other.
pascal@2600 57 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
domcox@14331 58
domcox@14331 59 # locales
domcox@14331 60 for locale in $LOCALES; do
al@16691 61 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
domcox@14331 62 done
pascal@2600 63 }
pascal@2600 64
pankso@2917 65 post_install()
pankso@2917 66 {
pascal@18730 67 res=$(grep ^session < "$1/etc/slim.conf" | sed s/"sessions. *"// \
domcox@14331 68 | sed s/,e17//)
pankso@2917 69 # Adding WM to SLIM available sessions.
domcox@14331 70 if ! echo "$res" | grep -q enlightenment; then
pascal@20319 71 echo
domcox@14331 72 echo -n "Adding enlightenment to /etc/slim.conf..."
domcox@14331 73 sed -i "s/^sessions.*/sessions enlightenment,${res}/" \
domcox@14331 74 /etc/slim.conf
pankso@2917 75 status
pankso@2917 76 fi
pankso@2917 77 }
pankso@2917 78
pankso@2917 79 post_remove()
pankso@2917 80 {
pankso@2917 81 # Remove WM from SLIM available sessions.
pascal@18730 82 if grep -q enlightenment "$1/etc/slim.conf"; then
pascal@18730 83 sed -i s/enlightenement,// "$1/etc/slim.conf"
pankso@2917 84 fi
pankso@2917 85 }