From d6abbefc9ecaef093724879e2cb6dbb83f9c2dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pola=C5=84ski?= Date: Wed, 11 Mar 2020 00:04:01 +0100 Subject: testing/borgmatic: new aport --- testing/borgmatic/APKBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 testing/borgmatic/APKBUILD (limited to 'testing') diff --git a/testing/borgmatic/APKBUILD b/testing/borgmatic/APKBUILD new file mode 100644 index 0000000000..de3153d6f7 --- /dev/null +++ b/testing/borgmatic/APKBUILD @@ -0,0 +1,29 @@ +# Contributor: Michał Polański +# Maintainer: Michał Polański +pkgname=borgmatic +pkgver=1.5.1 +pkgrel=0 +pkgdesc="Simple, configuration-driven backup software for servers and workstations" +url="https://torsion.org/borgmatic/" +arch="noarch !s390x" # limited by borgbackup +license="GPL-3.0-or-later" +depends="borgbackup python3 py3-pykwalify py3-requests py3-ruamel.yaml py3-colorama" +makedepends="py3-setuptools" +checkdepends="py3-pytest py3-pytest-cov py3-flexmock" +source="$pkgname-$pkgver.tar.gz::https://projects.torsion.org/witten/borgmatic/archive/$pkgver.tar.gz" +builddir="$srcdir/borgmatic" + +build() { + python3 setup.py build +} + +check() { + # omit a simple test that requires borgmatic to be available in $PATH + pytest -k "not test_borgmatic_version_matches_news_version" +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build +} + +sha512sums="446c74deb8fa57ede9a7e4ae1331119d34934cba6aec436f67582b752bb48f7203bc65c50cbe0ff426984785aeb444c6ff8e3dadcf1285ebe90b613b71d5e35e borgmatic-1.5.1.tar.gz" -- cgit v1.2.3