diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9dc85a9691ce --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-syndom-git + pkgdesc = A simple RSS/Atom parser library in C++, with python bindings + pkgver = 3f92efe + pkgrel = 1 + url = https://gitlab.com/gabmus/syndication-domination + arch = any + license = AGPL3 + makedepends = git + makedepends = meson + depends = python + depends = pugixml + depends = pybind11 + provides = python-syndom + conflicts = python-syndom + source = python-syndom::git+https://gitlab.com/GabMus/syndication-domination.git + sha256sums = SKIP + +pkgname = python-syndom-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..23785f363160 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Gabriele Musco <gabmus@disroot.org> +# Upstream URL: https://gitlab.com/gabmus/syndication-domination + +pkgname=python-syndom-git +pkgver=3f92efe +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') +makedepends=('git' 'meson') +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 \ + "${pkgname%-git}" build + meson compile -C build +} + +package() { + meson install -C build --destdir "$pkgdir" +} + |