# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=py3-syndom
pkgver=1.0_git20230325 # Tagged release is obsolete
_commit=75920321062d682437f3fb0319dad227d8b18f6c
pkgrel=3
# The project only builds the python bindings, or optionally a small
# CLI app; there are no shared libraries, thus the bindings are packaged
# directly rather than making a syndication-domination package
pkgdesc="Syndication Domination: Simple RSS/Atom parser library in C++ (python bindings)"
url="https://gitlab.com/gabmus/syndication-domination"
arch="all"
license="AGPL-3.0-or-later"
depends="python3"
makedepends="meson cmake fmt-dev pugixml-dev py3-pybind11 py3-pybind11-dev
	python3-dev tidyhtml-dev"
source="https://gitlab.com/gabmus/syndication-domination/-/archive/$_commit/syndication-domination-$pkgver.tar.gz"
builddir="$srcdir/syndication-domination-$_commit"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
891f6c12c93f00d1f253059a4304e5cc5698afa67e5ee9ec9e99f1992e201458a038652453de3e9d166f3c5851d57cd630b0817e75526b94ace7f43accee9c42  syndication-domination-1.0_git20230325.tar.gz
"
