wok view eggwm/receipt @ rev 24520
updated ethtool (5.4 -> 5.16)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 22 15:25:07 2022 +0100 (2022-02-22) |
parents | 20661c276bcf |
children | e1e1678c5265 |
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
20 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
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 }