diff options
Diffstat (limited to 'system/timeshift')
-rw-r--r-- | system/timeshift/timeshift-gtk.desktop.patch | 37 | ||||
-rw-r--r-- | system/timeshift/timeshift-launcher | 17 | ||||
-rw-r--r-- | system/timeshift/timeshift.1.gz | bin | 1380 -> 0 bytes | |||
-rw-r--r-- | system/timeshift/timeshift.SlackBuild | 30 | ||||
-rw-r--r-- | system/timeshift/timeshift.info | 10 |
5 files changed, 39 insertions, 55 deletions
diff --git a/system/timeshift/timeshift-gtk.desktop.patch b/system/timeshift/timeshift-gtk.desktop.patch deleted file mode 100644 index a455ffe5cc..0000000000 --- a/system/timeshift/timeshift-gtk.desktop.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- timeshift-gtk.desktop 2022-06-19 15:59:11.318649676 +0100 -+++ timeshift-gtk.desktop.new 2022-06-24 21:02:22.164013886 +0100 -@@ -1,8 +1,7 @@ - [Desktop Entry] -+Type=Application - Name=Timeshift --MimeType= - Exec=timeshift-launcher --Type=Application - GenericName=System Restore Utility - GenericName[ca]=Utilitat de restauració del sistema - GenericName[cs]=Nástroj pro obnovení systému -@@ -14,15 +13,15 @@ - GenericName[ru]=Программа для восстановления системы - Terminal=false - Icon=timeshift --Comment=System Restore Utility --Comment[ca]=Utilitat de restauració del sistema --Comment[cs]=Nástroj pro obnovení systému --Comment[da]=Værktøj til systemgendannelse --Comment[fr]=Utilitaire de restauration système --Comment[hr]=Alat obnove sustava --Comment[lt]=Sistemos atkūrimo paslaugų programa --Comment[nl]=Hulpmiddel voor systeemherstel --Comment[ru]=Программа для восстановления системы -+Comment=Timeshift restores your system to an earlier backup -+Comment[ca]=Timeshift restaura el sistema a una còpia de seguretat anterior -+Comment[cs]=Timeshift obnoví váš systém do dřívější zálohy -+Comment[da]=Timeshift gendanner dit system til en tidligere sikkerhedskopi -+Comment[fr]=Timeshift restaure votre système à une sauvegarde antérieure -+Comment[hr]=Timeshift vraća vaš sustav na raniju sigurnosnu kopiju -+Comment[lt]=Timeshift atkuria jūsų sistemos ankstesnę atsarginę kopiją -+Comment[nl]=Timeshift herstelt uw systeem naar een eerdere back-up -+Comment[ru]=Timeshift восстанавливает вашу систему до более ранней резервной копии - X-KDE-StartupNotify=false - Categories=System; - X-GNOME-UsesNotifications=true diff --git a/system/timeshift/timeshift-launcher b/system/timeshift/timeshift-launcher new file mode 100644 index 0000000000..37e8cb7ab4 --- /dev/null +++ b/system/timeshift/timeshift-launcher @@ -0,0 +1,17 @@ +#!/bin/bash + +app_command='timeshift-gtk' + +if [ "$(id -u)" -eq 0 ]; then + # user is admin + ${app_command} +else + # user is not admin + if echo $- | grep "i" >/dev/null 2>&1; then + # script is running in interactive mode + su - -c "${app_command}" + else + # script is running in non-interactive mode + gksu ${app_command} + fi +fi diff --git a/system/timeshift/timeshift.1.gz b/system/timeshift/timeshift.1.gz Binary files differdeleted file mode 100644 index d6ff866612..0000000000 --- a/system/timeshift/timeshift.1.gz +++ /dev/null diff --git a/system/timeshift/timeshift.SlackBuild b/system/timeshift/timeshift.SlackBuild index 44f4a91ffb..1ec214e7e9 100644 --- a/system/timeshift/timeshift.SlackBuild +++ b/system/timeshift/timeshift.SlackBuild @@ -1,8 +1,8 @@ #!/bin/bash -# Slackware build script for notepadqq +# Slackware build script for timeshift -# Copyright 2022 Antonio Leal, Porto Salvo, Oeiras, Portugal +# Copyright 2024 Antonio Leal, Porto Salvo, Oeiras, Portugal # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,8 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=timeshift -VERSION=${VERSION:-22.06.1} -BUILD=${BUILD:-1} +VERSION=${VERSION:-24.01.1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -76,20 +76,24 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -make -make install DESTDIR=$PKG +# do not support xapp at this time +meson build --prefix=/usr -Dxapp=false +cd build +meson compile +DESTDIR=$PKG meson install +cd .. -# sbopkglint corrections: -rm -rf $PKG/usr/share/man -mkdir -p $PKG/usr/man/man1 -cp $CWD/timeshift.1.gz $PKG/usr/man/man1 -chmod -x $PKG/usr/share/pixmaps/* -chmod -x $PKG/usr/share/applications/* -patch $PKG/usr/share/applications/timeshift-gtk.desktop $CWD/timeshift-gtk.desktop.patch +# slackware friendly launcher requiring gksu +install -D -m0755 $CWD/timeshift-launcher $PKG/usr/bin/timeshift-launcher + +mv $PKG/usr/share/man $PKG/usr/ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/system/timeshift/timeshift.info b/system/timeshift/timeshift.info index 325eae5a13..d3be96c067 100644 --- a/system/timeshift/timeshift.info +++ b/system/timeshift/timeshift.info @@ -1,10 +1,10 @@ PRGNAM="timeshift" -VERSION="22.06.1" -HOMEPAGE="https://github.com/teejee2008/timeshift" -DOWNLOAD="https://github.com/teejee2008/timeshift/archive/v22.06.1/timeshift-22.06.1.tar.gz" -MD5SUM="6c1e50946ab89c99e71f66b64f7234dc" +VERSION="24.01.1" +HOMEPAGE="https://github.com/linuxmint/timeshift" +DOWNLOAD="https://github.com/linuxmint/timeshift/archive/24.01.1/timeshift-24.01.1.tar.gz" +MD5SUM="4ecf72bd3cc1f41bc6775ad34a185397" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="gksu" MAINTAINER="Antonio Leal" EMAIL="antonioleal@yahoo.com" |