wok-6.x view eggwm/receipt @ rev 25119
updated peazip (6.8.0 -> 8.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jun 26 09:56:47 2022 +0100 (2022-06-26) |
parents | e1e1678c5265 |
children |
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="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL"
13 DEPENDS="xorg-libX11 libQtCore libQtGui"
14 BUILD_DEPENDS="qmake Qt4-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
20 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 qmake EggWM.pro &&
27 make &&
28 make install INSTALL_ROOT=$DESTDIR
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin $fs/usr/share
35 install -m 755 $src/eggwm $fs/usr/bin/eggwm
36 cp -a $src/installation $fs/usr/share/eggwm
37 rm -rf $fs/usr/share/eggwm/themes/testtheme
38 find $fs/usr/share/eggwm -type f -exec chmod 0644 {} \;
39 cp -r $stuff/xsessions $fs/usr/share
40 }
42 post_install()
43 {
44 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
45 # Adding WM to SLIM available sessions.
46 if ! echo "$res" | grep -q $PACKAGE; then
47 echo
48 echo -n "Adding $PACKAGE to /etc/slim.conf..."
49 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
50 status
51 fi
52 }
54 post_remove()
55 {
56 # Remove WM from SLIM available sessions.
57 if grep -q $PACKAGE "$1/etc/slim.conf"; then
58 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
59 fi
60 }