# Maintainer: Blossom
pkgname=blossom-arc
pkgver=0.1.2
pkgrel=1
pkgdesc="A Rust library and CLI for managing pacman and flatpak packages with configuration-driven filtering"
arch=('x86_64')
url="https://git.blossomos.org/Blossom/arc"
license=('MIT')
depends=('pacman' 'flatpak')
makedepends=('rust' 'cargo')
options=('!strip')
source=("${pkgname}-${pkgver}.tar.gz::https://git.blossomos.org/Blossom/arc/archive/main.tar.gz")
sha256sums=('SKIP')

build() {
  cd arc
  cargo build --release
}

package() {
  cd arc
  
  # Install the binary
  install -Dm755 target/release/arc "${pkgdir}/usr/bin/arc"
  
  # Install the configuration file
  install -Dm644 dist/arc.json "${pkgdir}/etc/arc.json"
}
