# Maintainer: Gavin Luo <lunt.luo@gmail.com>
# Contributor: Guillaume Hayot <ghayot@postblue.info>

pkgname=gnome-shell-extension-gsconnect
pkgver=72
pkgrel=1
pkgdesc="KDE Connect implementation with GNOME Shell integration"
arch=('any')
url="https://github.com/GSConnect/gnome-shell-extension-gsconnect"
license=('GPL-2.0-or-later OR MPL-2.0')
makedepends=('meson')
depends=('gnome-shell>=46')
optdepends=('evolution-data-server: Contacts integration (Evolution)'
            'libgdata: Contacts integration (GNOME Online Accounts)'
            'gsound: Themed sound effects'
            'python-nautilus: Nautilus integration')
source=(https://github.com/GSConnect/"${pkgname}"/archive/v"${pkgver}".tar.gz)
b2sums=('8d83a2f4624f0db3da25ba7e625f110a1a8142370a2ebe96dac51d59762067147c27de125a62163e1ed545bb04f75607b36896214dc43ad78177441171e97673')

build() {
  arch-meson -Dinstalled_tests=false -Dfirewalld=true ${pkgname}-${pkgver} build
  meson compile -C build
}

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