# BOS in-house rebuild of bibata-cursor-theme-bin (AUR-only upstream).
# Bibata is the BOS default cursor theme; the AUR package is republished to the
# [breadway] repo so the ISO build can pull it via pacman (same pattern as
# zen-browser-bin and calamares). Prebuilt release tarball — no build step.
# Upstream maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=bibata-cursor-theme-bin
pkgver=2.0.7
pkgrel=1
pkgdesc="Material Based Cursor Theme"
arch=('any')
url="https://github.com/ful1e5/Bibata_Cursor"
license=('GPL-3.0-or-later')
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}")
options=('!strip')
source=("${pkgname%-bin}-$pkgver.tar.xz::$url/releases/download/v$pkgver/Bibata.tar.xz")
sha256sums=('172e33c4ae415278384dcecc7d1a9b7a024266bc944bc751fd86532be1cc6251')

# Upstream tarball has all 12 variants (~322 MiB). BOS only ever selects
# Bibata-Modern-Ice (hyprland.lua XCURSOR_THEME, gsettings, gtk settings.ini).
# Ship that plus its -Right sibling.
_variants=(Bibata-Modern-Ice Bibata-Modern-Ice-Right)
package() {
  install -d "$pkgdir/usr/share/icons"
  for v in "${_variants[@]}"; do
    cp -r "$v" "$pkgdir/usr/share/icons/"
  done
}
