# Maintainer: Gavin Luo <lunt.luo@gmail.com>

pkgname=gnome-shell-extension-focus-timer
pkgver=3
pkgrel=1
pkgdesc='GNOME Shell integration for the Focus Timer app'
arch=('any')
url="https://github.com/focustimerhq/gnome-shell-extension-focus-timer"
license=('GPL-3.0-only')
depends=('gnome-shell>=48' 'dconf' 'focus-timer')
makedepends=('meson')
source=("${pkgver}.tar.gz"::"${url}/archive/refs/tags/${pkgver}.tar.gz")
b2sums=('f6693bbe456997c4bc526419d377741b2ce7b06f08f6a89535404c44b6a8cd9b0d1d7d7447fbcde9938606af21da465249a50a82209e21a3c92121185a880cd7')

build() {
    cd "${pkgname}-${pkgver}"
    arch-meson build
    ninja -C build
}

package() {
    cd "${pkgname}-${pkgver}"

    DESTDIR="$pkgdir" ninja -C build install
}
