# Arch's own [extra] has had a DNS resolver called numa since 6 October 2026,
# and comes first in pacman.conf, so a package named numa here would neither
# install nor update. Both ship /usr/bin/numa.
pkgname=numa-photo
pkgver=@VERSION@
pkgrel=1
pkgdesc="RAW photo editor and library"
arch=(x86_64)
url="https://github.com/simmmmm/Numa"
license=(GPL-3.0-or-later)
depends=(gtk4 libadwaita libshumate vulkan-icd-loader hicolor-icon-theme)
makedepends=(rust openssl)
conflicts=(numa)
optdepends=('libgphoto2: tethered shooting (Shoot Tethered…)')
options=(!debug !lto)
source=("numa-$pkgver.tar.xz")
sha256sums=(SKIP)

build() {
    cd "numa-$pkgver"
    sh packaging/obs/build.sh build
}

package() {
    cd "numa-$pkgver"
    sh packaging/obs/build.sh install "$pkgdir"
}
