# Maintainer: Valeria Fadeeva <valeria@fadeeva.me>

_gitname=CachyOS-Settings
pkgname=cachyos-settings
pkgver=1.0.6
pkgrel=1
groups=('cachyos')
arch=('any')
license=(GPL-1.0-only)
makedepends=('coreutils')
pkgdesc='CachyOS - Settings'
source=("git+https://github.com/cachyos/CachyOS-Settings?signed#tag=$pkgver")
install="ins.install"
sha256sums=("SKIP")
validpgpkeys=(
  E8B9AA39F054E30E8290D492C3C4820857F654FE  # Peter Jung <admin@ptr1337.dev>
)

depends=(
    'zram-generator'
    'ananicy-cpp'
    'cachyos-ananicy-rules-git'
    'inxi'
    'systemd>=256'
)
optdepends=('ruby: for tunecfs2'
            'libluv: for topmem'
            'lua-luv: for topmem'
            'power-profiles-daemon: For game-performance')

package() {
  install -d "$pkgdir/etc"
  cp -rf "${srcdir}/${_gitname}/etc" "$pkgdir"
  install -d "$pkgdir/usr"
  cp -rf "${srcdir}/${_gitname}/usr" "$pkgdir"
}

