wok-6.x annotate xfce4-session/receipt @ rev 5778

Speedup some builds
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 09 20:33:27 2010 +0200 (2010-07-09)
parents 413b0174114a
children ccf7ab705312
rev   line source
erjo@2073 1 # SliTaz package receipt.
erjo@2073 2
erjo@2073 3 PACKAGE="xfce4-session"
erjo@4130 4 VERSION="4.6.1"
erjo@2073 5 CATEGORY="x-window"
erjo@2073 6 SHORT_DESC="Xfce session manager"
erjo@2073 7 MAINTAINER="erjo@slitaz.org"
erjo@5218 8 DEPENDS="libxfce4util libxfcegui4 libwnck xorg-iceauth \
pascal@5008 9 dbus-glib libglade"
erjo@5218 10 SUGGESTED="perl-xml-parser"
pascal@4232 11 BUILD_DEPENDS="libxfce4util-dev libxfcegui4-dev libwnck-dev xorg-iceauth"
erjo@2073 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@2073 13 WEB_SITE="http://www.xfce.org/"
pascal@4214 14 WGET_URL="$WEB_SITE/archive/xfce/$VERSION/src/$TARBALL"
erjo@2073 15
erjo@2073 16 # Rules to configure and make the package.
erjo@2073 17 compile_rules()
erjo@2073 18 {
erjo@2073 19 cd $src
erjo@2073 20 ./configure --prefix=/usr \
erjo@2073 21 --sysconfdir=/etc \
erjo@2073 22 --enable-dbus \
erjo@2073 23 --enable-final \
erjo@2073 24 --disable-gnome \
erjo@4130 25 --disable-debug \
pascal@4232 26 --libexecdir=/usr/lib/$PACKAGE \
erjo@2073 27 --mandir=/usr/share/man $CONFIGURE_ARGS && \
erjo@2073 28 make && make DESTDIR=$PWD/_pkg install
erjo@2073 29 }
erjo@2073 30
erjo@2073 31 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@2073 32 genpkg_rules()
erjo@2073 33 {
pascal@4232 34 mkdir -p $fs/usr/lib \
erjo@2073 35 $fs/usr/share/locale \
erjo@4183 36 $fs/sbin
erjo@4183 37
erjo@2073 38 cp -a $_pkg/etc $fs/
erjo@2073 39 cp -a $_pkg/usr/bin $fs/usr
pascal@4232 40 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
erjo@2073 41 cp -a $_pkg/usr/lib $fs/usr
erjo@2073 42 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
erjo@2073 43 cp -a $_pkg/usr/share/applications $fs/usr/share
erjo@2073 44 cp -a $_pkg/usr/share/icons $fs/usr/share
erjo@2073 45 cp -a $_pkg/usr/share/themes $fs/usr/share
erjo@4183 46 #cp -a $_pkg/usr/share/xfce4 $fs/usr/share
erjo@4183 47
erjo@4183 48 # xfce4-session-logout workarround
erjo@4183 49 cp stuff/shutdown $fs/sbin
erjo@4130 50
erjo@4130 51 # strip all files
pascal@4232 52 strip -s $fs/usr/lib/$PACKAGE/xf*
erjo@4130 53
erjo@4130 54 # remove autostartfile
erjo@4130 55 rm -f $fs/etc/xdg/autostart/*
erjo@2073 56
erjo@2073 57 # Remove unecessary files
erjo@2073 58 find $fs/ -name "*.*a" -exec rm -f {} \;
erjo@2073 59 rm -rf $fs/usr/lib/pkgconfig
erjo@2073 60 # Remove SVG icons
erjo@2073 61 rm -rf $fs/usr/share/icons/hicolor/scalable
erjo@2073 62 }
erjo@2073 63