wok annotate lxqt-common/receipt @ rev 25083
updated p11-kit and p11-kit-dev (0.23.20 -> 0.24.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 15 17:22:15 2022 +0100 (2022-06-15) |
parents | b569b85b0fb9 |
children | 7364ffdaaa60 |
rev | line source |
---|---|
al@16833 | 1 # SliTaz package receipt. |
al@16833 | 2 |
al@16833 | 3 PACKAGE="lxqt-common" |
psychomaniak@17239 | 4 VERSION="0.8.0" |
al@16833 | 5 CATEGORY="system-tools" |
al@16833 | 6 SHORT_DESC="Common files for LXQt" |
al@16833 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@16833 | 8 LICENSE="GPL2" |
al@16833 | 9 WEB_SITE="https://github.com/lxde/lxqt-common" |
pascal@24993 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24993 | 11 WGET_URL="https://github.com/lxqt/lxqt-common-deprecated/archive/refs/tags/$VERSION.tar.gz" |
al@17501 | 12 TAGS="LXQt window-manager" |
al@16833 | 13 |
al@16833 | 14 # TODO: add more depends |
al@16833 | 15 DEPENDS="xorg-xprop dbus " |
psychomaniak@17239 | 16 BUILD_DEPENDS="cmake Qt4-dev qmake liblxqt-dev grep libqtxdg-dev" |
al@16833 | 17 |
pascal@24308 | 18 # What is the latest version available today? |
pascal@24308 | 19 current_version() |
pascal@24308 | 20 { |
pascal@24308 | 21 wget -O - $WEB_SITE/releases 2>/dev/null | \ |
pascal@24308 | 22 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 23 } |
pascal@24308 | 24 |
al@16833 | 25 # Rules to configure and make the package. |
al@16833 | 26 compile_rules() |
al@16833 | 27 { |
al@16833 | 28 mkdir build; cd build |
al@16833 | 29 cmake -DCMAKE_INSTALL_PREFIX=/usr .. && |
al@16833 | 30 make && |
al@16833 | 31 make DESTDIR=$install install |
al@16833 | 32 } |
al@16833 | 33 |
al@16833 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16833 | 35 genpkg_rules() |
al@16833 | 36 { |
al@16833 | 37 mkdir -p $fs/usr |
al@16833 | 38 cp -a $install/etc $fs |
al@16833 | 39 cd $fs; patch -p0 < $stuff/settings.diff |
al@16833 | 40 cp -a $install/usr/bin $fs/usr |
al@16833 | 41 cp -a $install/usr/share $fs/usr |
al@16833 | 42 # all themes but 'flat' go to 'lxqt-themes' |
al@16833 | 43 rm -rf $fs/usr/share/lxqt/themes/* |
al@16833 | 44 cp -a $install/usr/share/lxqt/themes/flat $fs/usr/share/lxqt/themes |
al@16833 | 45 } |
erjo@18098 | 46 |
erjo@18098 | 47 post_install() |
erjo@18098 | 48 { |
pascal@18730 | 49 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
erjo@18098 | 50 # Adding WM to SLIM available sessions. |
erjo@18098 | 51 if ! echo "$res" | grep -q $PACKAGE; then |
pascal@20319 | 52 echo |
erjo@18098 | 53 echo -n "Adding lxqt to /etc/slim.conf..." |
pascal@18730 | 54 sed -i "s/^sessions.*/sessions ${res},lxqt/" "$1/etc/slim.conf" |
erjo@18098 | 55 status |
erjo@18098 | 56 fi |
erjo@18098 | 57 } |
erjo@18098 | 58 |
erjo@18098 | 59 post_remove() |
erjo@18098 | 60 { |
erjo@18098 | 61 # Remove WM from SLIM available sessions. |
pascal@18730 | 62 if grep -q lxqt "$1/etc/slim.conf"; then |
pascal@18730 | 63 sed -i s/,lxqt// "$1/etc/slim.conf" |
erjo@18098 | 64 fi |
erjo@18098 | 65 } |
erjo@18098 | 66 |