# Arch Linux package from the published tarball. Bump pkgver and sha256sums with
# scripts/package-linux.sh (it fills them in to dist/linux/PKGBUILD).
pkgname=lilt-bin
pkgver=@VERSION@
pkgrel=1
pkgdesc="Ad-free music player with synced lyrics and an always-on-top miniplayer"
arch=('x86_64')
url="https://nitaimaarek.com/lilt/"
license=('MIT')
depends=('alsa-lib' 'libx11' 'libxcursor' 'libxi' 'libxrandr' 'libxkbcommon-x11' 'libglvnd' 'fontconfig')
optdepends=('wayland: native Wayland window' 'xdg-utils: opening links' 'discord: Rich Presence')
provides=('lilt')
conflicts=('lilt')
source=("https://nitaimaarek.com/lilt/linux/lilt-${pkgver}-x86_64.tar.gz")
sha256sums=('@SHA256@')

package() {
  cd "lilt-${pkgver}-x86_64"
  install -Dm755 lilt "$pkgdir/usr/bin/lilt"
  install -Dm644 lilt.desktop "$pkgdir/usr/share/applications/lilt.desktop"
  install -Dm644 com.nitaimaarek.Lilt.metainfo.xml "$pkgdir/usr/share/metainfo/com.nitaimaarek.Lilt.metainfo.xml"
  for s in 32 48 64 128 256 512; do
    install -Dm644 "icons/${s}.png" "$pkgdir/usr/share/icons/hicolor/${s}x${s}/apps/lilt.png"
  done
}
