# Maintainer: Dan B <unknown@cryptoconspiracy.io>
pkgname=lili-crash
pkgver=0.6.0
pkgrel=1
pkgdesc="Find out why a program closed by itself: crash notifications with a one-click AI diagnosis"
arch=('any')
url="https://github.com/cryptoconspiracy/lili-crash"
license=('MIT')
depends=('python' 'systemd' 'libnotify' 'xdg-utils' 'pyside6')
makedepends=('gettext')
optdepends=('plasma-workspace: the panel widget with AI usage and crash history'
            'libayatana-appindicator: the tray icon on desktops other than KDE Plasma'
            'python-gobject: the tray icon on desktops other than KDE Plasma'
            'konsole: a terminal for the diagnosis')
install=lili-crash.install
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('9ef77650c67a9f0a62d738bd9a679942352eb5625ba1adf7e6afb0619122376e')

build() {
  cd "$pkgname-$pkgver"
  make locales
}

check() {
  cd "$pkgname-$pkgver"
  make check
}

package() {
  cd "$pkgname-$pkgver"
  make PREFIX=/usr DESTDIR="$pkgdir" install
}
