summaryrefslogtreecommitdiffstats
path: root/system/timeshift/timeshift.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/timeshift/timeshift.SlackBuild')
-rw-r--r--system/timeshift/timeshift.SlackBuild30
1 files changed, 17 insertions, 13 deletions
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