wok annotate eggwm/receipt @ rev 23385
updated perl-params-validate (1.21 -> 1.29)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 16:01:16 2020 +0100 (2020-03-31) |
parents | e3f377fbc5f0 |
children | 34e801e0eb52 |
rev | line source |
---|---|
pankso@16372 | 1 # SliTaz package receipt. |
pankso@16372 | 2 |
pankso@16372 | 3 PACKAGE="eggwm" |
pankso@16372 | 4 VERSION="0.2" |
pankso@16372 | 5 CATEGORY="x-window" |
pankso@16372 | 6 SHORT_DESC="EggWM is a light QT Window Manager." |
pankso@16372 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@16372 | 8 LICENSE="GPL3" |
pankso@16372 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20682 | 10 WEB_SITE="https://github.com/JoseExposito/eggwm" |
pankso@16372 | 11 WGET_URL="http://eggwm.googlecode.com/files/$TARBALL" |
pankso@16372 | 12 |
pankso@16372 | 13 DEPENDS="xorg-libX11 libQtCore libQtGui" |
pankso@16372 | 14 BUILD_DEPENDS="qmake Qt4-dev" |
pankso@16372 | 15 |
pankso@16372 | 16 # Rules to configure and make the package. |
pankso@16372 | 17 compile_rules() |
pankso@16372 | 18 { |
pankso@16372 | 19 qmake EggWM.pro && |
pankso@16372 | 20 make && |
pankso@16372 | 21 make install INSTALL_ROOT=$DESTDIR |
pankso@16372 | 22 } |
pankso@16372 | 23 |
pankso@16372 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16372 | 25 genpkg_rules() |
pankso@16372 | 26 { |
pankso@16372 | 27 mkdir -p $fs/usr/bin $fs/usr/share |
pankso@16372 | 28 install -m 755 $src/eggwm $fs/usr/bin/eggwm |
pankso@16372 | 29 cp -a $src/installation $fs/usr/share/eggwm |
pankso@16372 | 30 rm -rf $fs/usr/share/eggwm/themes/testtheme |
pankso@16372 | 31 find $fs/usr/share/eggwm -type f -exec chmod 0644 {} \; |
pankso@16372 | 32 cp -r $stuff/xsessions $fs/usr/share |
pankso@16372 | 33 } |
pankso@16372 | 34 |
pankso@16372 | 35 post_install() |
pankso@16372 | 36 { |
pankso@16372 | 37 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//) |
pankso@16372 | 38 # Adding WM to SLIM available sessions. |
pankso@16372 | 39 if ! echo "$res" | grep -q $PACKAGE; then |
pascal@20319 | 40 echo |
pankso@16372 | 41 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@16372 | 42 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf |
pankso@16372 | 43 status |
pankso@16372 | 44 fi |
pankso@16372 | 45 } |
pankso@16372 | 46 |
pankso@16372 | 47 post_remove() |
pankso@16372 | 48 { |
pankso@16372 | 49 # Remove WM from SLIM available sessions. |
pascal@18730 | 50 if grep -q $PACKAGE "$1/etc/slim.conf"; then |
pascal@18730 | 51 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
pankso@16372 | 52 fi |
pankso@16372 | 53 } |