wok view enlightenment-pam/receipt @ rev 20044

Improvements - Thanks Paul
author Leonardo Laporte <hackdorte@yandex.com>
date Thu Aug 31 03:57:08 2017 -0300 (2017-08-31)
parents 5d53e8ccbc8d
children 970c5ec9a60a
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment-pam"
4 SOURCE="enlightenment"
5 VERSION="0.17.6"
6 CATEGORY="x-window"
7 SHORT_DESC="Enlightenment window manager (E17) with PAM, Bluez and connman support."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="BSD"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.enlightenment.org/"
12 WGET_URL="http://download.enlightenment.org/releases/$TARBALL"
13 PROVIDE="enlightenment:pam"
14 TAGS="e enlightenment window-manager"
15 LOCALES="cs da de el es fr fr_CH hu it pl pt pt_BR ru sl sv zh_CN zh_TW"
17 # Add PAM and bluez support (enlightenment is smaller).
18 DEPENDS="emotion efreet edbus alsa-lib pam xcb-util-keysyms"
19 BUILD_DEPENDS="emotion-dev efreet-dev edbus-dev
20 xcb-util-keysyms-dev alsa-lib-dev
21 bluez-dev connman-dev pam-dev pm-utils"
22 SUGGESTED="bluez wpa_supplicant connman pm-utils"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 CFLAGS="$CFLAGS -fvisibility=hidden"
28 LDFLAGS="$LDFLAGS -fvisibility=hidden"
29 export LDFLAGS
31 ./configure \
32 --sysconfdir=/etc \
33 --disable-mount-hal \
34 --disable-doc \
35 --build=${ARCH}-slitaz-gnulinux \
36 $CONFIGURE_ARGS &&
37 make $MAKEFLAGS && make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib $fs/usr/share/applications $fs/usr/share/locale
44 # Use a modified sysactions.conf
45 cp -a $stuff/etc $fs
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/lib/enlightenment $fs/usr/lib
49 cp -a $install/usr/share/enlightenment $fs/usr/share
50 cp -a $install/usr/share/xsessions/enlightenment.desktop $fs/usr/share/applications
52 # Remove devel files *.a/*.la
53 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a
54 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a
56 # Rm backgrouds (1,6 Mb) and desktop file already provides by other.
57 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
59 # locales
60 for locale in $LOCALES; do
61 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
62 done
63 }
65 post_install()
66 {
67 res=$(grep ^session < "$1/etc/slim.conf" | sed s/"sessions. *"// \
68 | sed s/,e17//)
69 # Adding WM to SLIM available sessions.
70 if ! echo "$res" | grep -q enlightenment; then
71 echo -n "Adding enlightenment to /etc/slim.conf..."
72 sed -i "s/^sessions.*/sessions enlightenment,${res}/" \
73 /etc/slim.conf
74 status
75 fi
76 }
78 post_remove()
79 {
80 # Remove WM from SLIM available sessions.
81 if grep -q enlightenment "$1/etc/slim.conf"; then
82 sed -i s/enlightenement,// "$1/etc/slim.conf"
83 fi
84 }