wok-next view eggwm/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="eggwm"
4 VERSION="0.2"
5 CATEGORY="x-window"
6 SHORT_DESC="Light QT Window Manager"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://code.google.com/archive/p/eggwm"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://eggwm.googlecode.com/files/$TARBALL"
14 BUILD_DEPENDS="qmake Qt4-dev"
16 compile_rules() {
17 qmake EggWM.pro &&
18 make &&
19 make INSTALL_ROOT=$install install
20 }
22 genpkg_rules() {
23 mkdir -p $fs/usr/bin $fs/usr/share
24 install -m 755 $src/eggwm $fs/usr/bin/eggwm
25 cp -a $src/installation $fs/usr/share/eggwm
26 rm -rf $fs/usr/share/eggwm/themes/testtheme
27 find $fs/usr/share/eggwm -type f -exec chmod 0644 {} \;
28 cp -r $stuff/xsessions $fs/usr/share
29 DEPENDS="libx11 libQtCore libQtGui"
30 }
32 post_install() {
33 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
34 # Adding WM to SLIM available sessions.
35 if ! echo "$res" | grep -q $PACKAGE; then
36 echo -n "Adding $PACKAGE to /etc/slim.conf..."
37 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" $root/etc/slim.conf
38 status
39 fi
40 }
42 post_remove() {
43 # Remove WM from SLIM available sessions.
44 if grep -q $PACKAGE "$1/etc/slim.conf"; then
45 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
46 fi
47 }