# Maintainer: Gabriele Musco # Upstream URL: https://gitlab.com/gabmus/syndication-domination pkgname=python-syndom-git pkgver=f64caab pkgrel=1 pkgdesc="A simple RSS/Atom parser library in C++, with python bindings" arch=('any') url="https://gitlab.com/gabmus/syndication-domination" license=('AGPL3') depends=('python' 'pugixml' 'pybind11' 'tidy' 'fmt') makedepends=('git' 'meson' 'pybind11' 'cmake') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("${pkgname%-git}::git+https://gitlab.com/GabMus/syndication-domination.git") sha256sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { arch-meson \ -DPYTHON_BINDINGS=true \ -DTO_JSON_BINARY=false \ -DHTML_SUPPORT=true \ "${pkgname%-git}" build meson compile -C build } package() { meson install -C build --destdir "$pkgdir" }