wok-6.x annotate eggwm/receipt @ rev 18043

ppp: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 12 08:46:15 2015 +0200 (2015-05-12)
parents
children 9e01bc6321ea
rev   line source
pankso@16372 1 # SliTaz package receipt.
pankso@16372 2
pankso@16372 3 PACKAGE="eggwm"
pankso@16372 4 VERSION="0.2"
pankso@16372 5 CATEGORY="x-window"
pankso@16372 6 SHORT_DESC="EggWM is a light QT Window Manager."
pankso@16372 7 MAINTAINER="pankso@slitaz.org"
pankso@16372 8 LICENSE="GPL3"
pankso@16372 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@16372 10 WEB_SITE="http://code.google.com/p/eggwm/"
pankso@16372 11 WGET_URL="http://eggwm.googlecode.com/files/$TARBALL"
pankso@16372 12
pankso@16372 13 DEPENDS="xorg-libX11 libQtCore libQtGui"
pankso@16372 14 BUILD_DEPENDS="qmake Qt4-dev"
pankso@16372 15
pankso@16372 16 # Rules to configure and make the package.
pankso@16372 17 compile_rules()
pankso@16372 18 {
pankso@16372 19 qmake EggWM.pro &&
pankso@16372 20 make &&
pankso@16372 21 make install INSTALL_ROOT=$DESTDIR
pankso@16372 22 }
pankso@16372 23
pankso@16372 24 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16372 25 genpkg_rules()
pankso@16372 26 {
pankso@16372 27 mkdir -p $fs/usr/bin $fs/usr/share
pankso@16372 28 install -m 755 $src/eggwm $fs/usr/bin/eggwm
pankso@16372 29 cp -a $src/installation $fs/usr/share/eggwm
pankso@16372 30 rm -rf $fs/usr/share/eggwm/themes/testtheme
pankso@16372 31 find $fs/usr/share/eggwm -type f -exec chmod 0644 {} \;
pankso@16372 32 cp -r $stuff/xsessions $fs/usr/share
pankso@16372 33 }
pankso@16372 34
pankso@16372 35 post_install()
pankso@16372 36 {
pankso@16372 37 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
pankso@16372 38 # Adding WM to SLIM available sessions.
pankso@16372 39 if ! echo "$res" | grep -q $PACKAGE; then
pankso@16372 40 echo -n "Adding $PACKAGE to /etc/slim.conf..."
pankso@16372 41 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
pankso@16372 42 status
pankso@16372 43 fi
pankso@16372 44 }
pankso@16372 45
pankso@16372 46 post_remove()
pankso@16372 47 {
pankso@16372 48 # Remove WM from SLIM available sessions.
pankso@16372 49 if grep -q $PACKAGE $1/etc/slim.conf; then
pankso@16372 50 sed -i s/,$PACKAGE// $root/etc/slim.conf
pankso@16372 51 fi
pankso@16372 52 }