wok-6.x annotate enlightenment/receipt @ rev 6895

Up: adeskbar to 0.4.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Oct 21 03:35:12 2010 +0000 (2010-10-21)
parents b29c8c2da6bb
children 85cd798d6997
rev   line source
pankso@140 1 # SliTaz package receipt.
pankso@140 2
pankso@140 3 PACKAGE="enlightenment"
pankso@4764 4 VERSION="0.16.999.063"
pankso@196 5 CATEGORY="x-window"
mallory@1406 6 SHORT_DESC="Enlightenment window manager (E17)."
pankso@140 7 MAINTAINER="pankso@slitaz.org"
pankso@2917 8 DEPENDS="eet evas ecore embryo edje efreet edbus slitaz-menus curl \
pascal@2487 9 xorg-libXcomposite libcrypto openssl alsa-lib xorg-libX11 xorg-libXau \
pascal@5026 10 xorg-libXdmcp xorg-libXext fribidi xorg-libXp xorg-libXss libtasn1"
pascal@2500 11 BUILD_DEPENDS="eet-dev evas-dev ecore-dev embryo-dev edje-dev efreet-dev \
pascal@5423 12 efreet edbus-dev edbus curl-dev libcrypto-dev openssl-dev fribidi-dev \
pascal@5423 13 xorg-libXp-dev"
pankso@140 14 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@140 15 WEB_SITE="http://www.enlightenment.org/"
pankso@4764 16 WGET_URL="http://download.enlightenment.org/snapshots/2009-12-02/$TARBALL"
jozee@4935 17 TAGS="wm window-manager"
pankso@140 18
pankso@140 19 # Rules to configure and make the package.
pankso@140 20 compile_rules()
pankso@140 21 {
pankso@140 22 cd $src
pascal@2600 23 sed -i 's|/pam_appl.h|/pam_appl.h.DUMMY|' configure.in
pankso@140 24 ./configure \
pankso@140 25 --prefix=/usr \
pankso@140 26 --sysconfdir=/etc \
pankso@140 27 --infodir=/usr/share/info \
pankso@140 28 --mandir=/usr/share/man \
pankso@2025 29 $CONFIGURE_ARGS &&
pascal@5797 30 make -j 4 &&
pankso@140 31 make DESTDIR=$PWD/_pkg install
pankso@140 32 }
pankso@140 33
pankso@140 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@140 35 genpkg_rules()
pankso@140 36 {
pankso@196 37 mkdir -p $fs/usr/share
pankso@165 38 # Use a modified sysactions.conf
pankso@165 39 cp -a stuff/etc $fs
pankso@843 40
pankso@140 41 cp -a $_pkg/usr/bin $fs/usr
pankso@140 42 cp -a $_pkg/usr/lib $fs/usr
pankso@140 43 cp -a $_pkg/usr/share/enlightenment $fs/usr/share
pankso@843 44
pankso@196 45 # Remove devel files *.a/*.la
pankso@140 46 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
pankso@2917 47 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
pankso@843 48
pankso@140 49 # Rm backgrouds (1,6 Mb).
pankso@140 50 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
pankso@140 51 }
pankso@140 52
pankso@2917 53 post_install()
pankso@2917 54 {
pankso@2917 55 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
pankso@2917 56 # Adding WM to SLIM available sessions.
pankso@2917 57 if ! echo "$res" | grep -q e17; then
pankso@2917 58 echo -n "Adding e17 to /etc/slim.conf..."
pankso@2917 59 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf
pankso@2917 60 status
pankso@2917 61 fi
pankso@2917 62 }
pankso@2917 63
pankso@2917 64 post_remove()
pankso@2917 65 {
pankso@2917 66 # Remove WM from SLIM available sessions.
pankso@2917 67 if grep -q e17 $1/etc/slim.conf; then
pankso@2917 68 sed -i s/,e17// $1/etc/slim.conf
pankso@2917 69 fi
pankso@2917 70 }