# Contributor: Robin Candau <robincandau@protonmail.com>
# Maintainer: Robin Candau <robincandau@protonmail.com>
pkgname=timeshift
pkgver=24.06.4
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="
e365432ba87b5df4c5776130a871dffceb8482f0bc07f755388f48b7a9fb1a2ae5e8d1599d89c3cd13d26bc9f96ce68e5da3f65f9e2d0da150a764af1f789da4  timeshift-24.06.4.tar.gz
"
