wok-undigest diff e18/receipt @ rev 1120

Add sysdig
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 04 14:36:46 2014 +0000 (2014-04-04)
parents
children c99806b16d6d
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/e18/receipt	Fri Apr 04 14:36:46 2014 +0000
     1.3 @@ -0,0 +1,82 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="e18"
     1.7 +SOURCE="enlightenment"
     1.8 +VERSION="0.18.6"
     1.9 +CATEGORY="x-window"
    1.10 +SHORT_DESC="Enlightenment (E18) desktop environment with PAM support."
    1.11 +MAINTAINER="pankso@slitaz.org"
    1.12 +LICENSE="BSD"
    1.13 +TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.14 +WEB_SITE="http://www.enlightenment.org/"
    1.15 +WGET_URL="http://download.enlightenment.org/rel/apps/$SOURCE/$TARBALL"
    1.16 +PROVIDE="enlightenment"
    1.17 +TAGS="e enlightenment e18 wm window-manager"
    1.18 +LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW"
    1.19 +HOST_ARCH="i486 arm"
    1.20 +
    1.21 +SUGGESTED="wpa_supplicant connman pm-utils"
    1.22 +DEPENDS="efl elementary pam xcb-util-keysyms"
    1.23 +BUILD_DEPENDS="efl-dev elementary-dev pam-dev xcb-util-keysyms-dev"
    1.24 +
    1.25 +# Handle cross compilation
    1.26 +case "$ARCH" in
    1.27 +	i?86) BUILD_DEPENDS="$BUILD_DEPENDS pm-utils connman-dev bluez-dev" ;;
    1.28 +esac
    1.29 +
    1.30 +# Rules to configure and make the package.
    1.31 +compile_rules()
    1.32 +{
    1.33 +	CFLAGS="$CFLAGS -fvisibility=hidden"
    1.34 +	LDFLAGS="$LDFLAGS -fvisibility=hidden"
    1.35 +	./configure \
    1.36 +		--sysconfdir=/etc \
    1.37 +		--disable-doc \
    1.38 +		$CONFIGURE_ARGS &&
    1.39 +	make $MAKEFLAGS && make install
    1.40 +}
    1.41 +
    1.42 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.43 +genpkg_rules()
    1.44 +{
    1.45 +	mkdir -p $fs/usr/lib $fs/usr/share
    1.46 +	# Use a modified sysactions.conf
    1.47 +	cp -a $stuff/etc $fs
    1.48 +
    1.49 +	cp -a $install/usr/bin $fs/usr
    1.50 +	cp -a $install/usr/lib/enlightenment $fs/usr/lib
    1.51 +	cp -a $install/usr/share/enlightenment $fs/usr/share
    1.52 +	cp -a $install/usr/share/xsessions $fs/usr/share
    1.53 +
    1.54 +	# Remove devel files *.a/*.la
    1.55 +	rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a
    1.56 +
    1.57 +	# Rm backgrouds (1,6 Mb) and desktop file already provides by other.
    1.58 +	rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
    1.59 +
    1.60 +	# locales
    1.61 +	for locale in $LOCALES; do
    1.62 +		mv $install/usr/share/locale/$locale $fs/usr/share/locale
    1.63 +	done
    1.64 +}
    1.65 +
    1.66 +post_install()
    1.67 +{
    1.68 +	res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \
    1.69 +		| sed s/,e17//)
    1.70 +	# Adding WM to SLIM available sessions.
    1.71 +	if ! echo "$res" | grep -q enlightenment; then
    1.72 +		echo -n "Adding enlightenment to /etc/slim.conf..."
    1.73 +		sed -i "s/^sessions.*/sessions            enlightenment,${res}/" \
    1.74 +			/etc/slim.conf
    1.75 +		status
    1.76 +	fi
    1.77 +}
    1.78 +
    1.79 +post_remove()
    1.80 +{
    1.81 +	# Remove WM from SLIM available sessions.
    1.82 +	if grep -q enlightenment $1/etc/slim.conf; then
    1.83 +		sed -i s/enlightenement,// $1/etc/slim.conf
    1.84 +	fi
    1.85 +}