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

pkgname="gnome-shell-extension-grand-theft-focus"
_uuid=grand-theft-focus@zalckos.github.com
pkgver=10
pkgrel=1
pkgdesc="GNOME extension. Removes the 'Window is ready' notification and brings the window into focus instead."
arch=('any')
url="https://github.com/zalckos/GrandTheftFocus"
license=('AGPL-3.0')
depends=('gnome-shell>=45')
source=("${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=('0ccf1fc25306fe8471f221b582e53def185a872062b7406cee694f8756ee86536ee3cab1f7f5842cf11bb262f122129186464d19268ca3b6b4cfc8a2bbe76acf')

package() {
  cd "${srcdir}/GrandTheftFocus-${pkgver}"

  for file in ./"${_uuid}"/*; do
    install -Dm644 "${file}" -t "${pkgdir}"/usr/share/gnome-shell/extensions/"${_uuid}"
  done
}
