wok-6.x view eggwm/receipt @ rev 21960
updated some more locales for squirrelmail (1.4.13 -> 1.4.18)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Oct 10 15:34:21 2019 +0100 (2019-10-10) |
parents | e3f377fbc5f0 |
children | 34e801e0eb52 |
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="https://github.com/JoseExposito/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 }