# Contributor: Adam Jensen <adam@acj.sh>
# Maintainer: Adam Jensen <adam@acj.sh>
pkgname=h26forge
pkgver=2024.07.06
_release_tag=2024-07-06
pkgrel=0
pkgdesc="Analyze, generate, and manipulate syntactically correct but semantically spec-non-compliant video files"
url="https://github.com/h26forge/h26forge"
arch="x86_64 aarch64" # dependency crates fail to build on other arches
license="MIT"
makedepends="cargo cargo-auditable clang-dev"
source="$pkgname-$_release_tag.tar.gz::https://github.com/h26forge/h26forge/archive/refs/tags/$_release_tag.tar.gz"
builddir="$srcdir/$pkgname-$_release_tag"

build() {
	cargo auditable build --release
}

check() {
	cargo test --release
}

package() {
	install -Dm755 target/release/"$pkgname" -t "$pkgdir"/usr/bin
}

sha512sums="
50f4bbc164ba37d6273d306c4fb4d6f0c535c0e65b5c40bf2939149688a5b2565766b568fc74b37c9b85468004b4451d91b957871c4d7f1126dac4547c098bfe  h26forge-2024-07-06.tar.gz
"
