From af2895df63ae72f33878de14daa2c50d58050b74 Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Fri, 1 Jun 2018 16:37:22 -0500 Subject: [PATCH] New package: timeshift-18.4 Closes https://github.com/voidlinux/void-packages/issues/14846 --- .../timeshift/patches/fix-ftbfs-vala40.patch | 11 +++++++++++ srcpkgs/timeshift/template | 19 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 srcpkgs/timeshift/patches/fix-ftbfs-vala40.patch create mode 100644 srcpkgs/timeshift/template diff --git a/srcpkgs/timeshift/patches/fix-ftbfs-vala40.patch b/srcpkgs/timeshift/patches/fix-ftbfs-vala40.patch new file mode 100644 index 00000000000..12c98297f2e --- /dev/null +++ b/srcpkgs/timeshift/patches/fix-ftbfs-vala40.patch @@ -0,0 +1,11 @@ +--- src/Utility/Gtk/TerminalWindow.vala.orig ++++ src/Utility/Gtk/TerminalWindow.vala +@@ -166,7 +166,7 @@ + } + + public void execute_command(string command){ +- term.feed_child("%s\n".printf(command), -1); ++ term.feed_child("%s\n".printf(command).to_utf8()); + } + + public void execute_script(string script_path, bool wait = false){ diff --git a/srcpkgs/timeshift/template b/srcpkgs/timeshift/template new file mode 100644 index 00000000000..6eb92b1c762 --- /dev/null +++ b/srcpkgs/timeshift/template @@ -0,0 +1,19 @@ +# Template file for 'timeshift' +pkgname=timeshift +version=18.4 +revision=1 +build_style=gnu-makefile +hostmakedepends="pkg-config vala" +makedepends="libgee08-devel json-glib-devel gtk+3-devel vte3-devel libgirepository-devel" +depends="rsync" +conf_files="/etc/default/timeshift.json" +short_desc="System restore tool" +maintainer="Andrew Benson " +license="GPL-3.0-or-later" +homepage="http://www.teejeetech.in/p/timeshift.html" +distfiles="https://github.com/teejee2008/timeshift/archive/v${version}.tar.gz" +checksum=5f180ba2ed66531b10e6cc9b1966e60be1c646ebe304dd0a29b4215318892feb + +post_install() { + rm "${DESTDIR}/usr/bin/timeshift-uninstall" +}