wok-6.x view eggwm/receipt @ rev 17685

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