# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=frei0r-plugins
pkgver=2.3.3
pkgrel=0
pkgdesc="A minimalistic plugin API for video sources and filters"
url="https://frei0r.dyne.org/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-or-later"
depends_dev="$pkgname"
makedepends="
	cairo-dev
	cmake
	gavl-dev
	samurai
	"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/dyne/frei0r/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/frei0r-$pkgver"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
4f1b7b098563b38379821a81b19e2f9722512827e6ef986e5bac836e4406ce23f7cb486fd882646a372044555a897c3532c4fa733f2e5797613c3b65aff4b015  frei0r-plugins-2.3.3.tar.gz
"
