# Maintainer: Francisco Guedes <francis@example.com>
pkgname=lazycelery-bin
pkgver=0.2.0
pkgrel=1
pkgdesc="Terminal UI for monitoring and managing Celery workers and tasks (binary release)"
arch=('x86_64')
url="https://github.com/Fguedes90/lazycelery"
license=('MIT')
depends=('gcc-libs')
provides=('lazycelery')
conflicts=('lazycelery')
source_x86_64=("https://github.com/Fguedes90/lazycelery/releases/download/v$pkgver/lazycelery-linux-x86_64.tar.gz")
sha256sums_x86_64=('PLACEHOLDER_SHA256')

package() {
    install -Dm755 lazycelery "$pkgdir/usr/bin/lazycelery"
    
    # Download and install license and docs
    curl -sL "https://raw.githubusercontent.com/Fguedes90/lazycelery/v$pkgver/LICENSE" -o LICENSE
    curl -sL "https://raw.githubusercontent.com/Fguedes90/lazycelery/v$pkgver/README.md" -o README.md
    
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}