Date: Sunday, April 9, 2023 @ 03:47:36
Author: felixonmars
Revision: 1443059
archrelease: copy trunk to community-staging-any
Added:
borgmatic/repos/community-staging-any/
borgmatic/repos/community-staging-any/PKGBUILD
(from rev 1443058, borgmatic/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: borgmatic/repos/community-staging-any/PKGBUILD (from rev 1443058,
borgmatic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-09 03:47:36 UTC (rev 1443059)
@@ -0,0 +1,49 @@
+# Maintainer: Daniel M. Capella <[email protected]>
+# Contributor: Kr1ss $(echo \<kr1ss+x-yandex+com\>|sed s/\+/./g\;s/\-/@/)
+# Contributor: Alexander Görtz <[email protected]>
+# Contributor: Dan Beste <[email protected]>
+# Contributor: Julien Nicoulaud <julien dot nicoulaud at gmail dot com>
+# Contributor: stef204 <https://aur.archlinux.org/account/stef204>
+
+pkgname=borgmatic
+pkgver=1.7.11
+pkgrel=2
+pkgdesc='Simple, configuration-driven backup software for servers and
workstations'
+arch=('any')
+url=https://torsion.org/borgmatic
+license=('GPL3')
+depends=('borg' 'python-colorama' 'python-jsonschema' 'python-requests'
+ 'python-ruamel-yaml' 'python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-flexmock' 'python-pytest')
+optdepends=('python-llfuse: for mount action')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
+sha256sums=('f12871fed27c80b665bb81040198137e0bde7c6047be21cb4484e9698bda20e7')
+b2sums=('a06737c48722fdf24efca76d40f6b413f39635b4137685d6279bf7a7dd002fadef28dab35a503fabf872c732a0f32fbff8c791fa9b4602299937aeae568d6137')
+
+prepare() {
+ cd $pkgname-$pkgver
+ sed -i 's,root/.local,usr,' sample/systemd/$pkgname.service
+}
+
+build() {
+ cd $pkgname-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $pkgname-$pkgver
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest -c /dev/null \
+ --ignore=tests/end-to-end
+}
+
+package() {
+ cd $pkgname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 -t "$pkgdir"/usr/lib/systemd/system sample/systemd/*
+ install -d "$pkgdir"/usr/share/bash-completion/completions
+ ./test-env/bin/borgmatic --bash-completion > \
+ "$pkgdir"/usr/share/bash-completion/completions/$pkgname
+}