wok-current view eggwm/receipt @ rev 20319

Up tazlito (501)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 20 13:28:18 2018 +0200 (2018-05-20)
parents 9e01bc6321ea
children e3f377fbc5f0
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
41 echo -n "Adding $PACKAGE to /etc/slim.conf..."
42 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
43 status
44 fi
45 }
47 post_remove()
48 {
49 # Remove WM from SLIM available sessions.
50 if grep -q $PACKAGE "$1/etc/slim.conf"; then
51 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
52 fi
53 }