# Contributor: Robin Candau <robincandau@protonmail.com>
# Maintainer: Robin Candau <robincandau@protonmail.com>
pkgname=timeshift
pkgver=24.06.6
pkgrel=0
pkgdesc="A system restore utility for Linux"
url="https://github.com/linuxmint/timeshift"
arch="all"
license="GPL-2.0-or-later"
depends="rsync cronie which xhost"
makedepends="help2man meson vala gtk+3.0-dev json-glib-dev vte3-dev libgee-dev xapp-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/linuxmint/timeshift/archive/refs/tags/$pkgver.tar.gz"

build() {
	meson setup --prefix=/usr --buildtype=plain "$srcdir/$pkgname-$pkgver" build
	meson compile -C build
}

check() {
	meson test -C build
}

package() {
	meson install -C build --destdir "$pkgdir"
}

sha512sums="
0f7cdd672724ec49dedb6ee303fa382fd0ff914f094344d37011c273a0806a544a85d7e1df586d51638d6be528378504a0523fb413f4ea3e198870249c637624  timeshift-24.06.6.tar.gz
"
