[arch-commits] Commit in borg/repos (3 files)
Eli Schwartz
eschwartz at archlinux.org
Sun Jan 28 08:31:55 UTC 2018
Date: Sunday, January 28, 2018 @ 08:31:53
Author: eschwartz
Revision: 287605
archrelease: copy trunk to community-staging-x86_64
Added:
borg/repos/community-staging-x86_64/
borg/repos/community-staging-x86_64/PKGBUILD
(from rev 287604, borg/trunk/PKGBUILD)
borg/repos/community-staging-x86_64/borg.coveragerc
(from rev 287604, borg/trunk/borg.coveragerc)
-----------------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
borg.coveragerc | 23 +++++++++++++++++++++++
2 files changed, 77 insertions(+)
Copied: borg/repos/community-staging-x86_64/PKGBUILD (from rev 287604, borg/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-01-28 08:31:53 UTC (rev 287605)
@@ -0,0 +1,54 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Vlad M. <vlad at archlinux.net>
+
+pkgname=borg
+_pkgname=borgbackup
+pkgver=1.1.4
+pkgrel=2
+pkgdesc='Deduplicating backup program with compression and authenticated encryption'
+url='https://borgbackup.github.io/'
+license=('BSD')
+arch=('x86_64')
+depends=('acl' 'lz4' 'openssl' 'python-msgpack' 'python-setuptools' 'xz' 'zstd')
+optdepends=('openssh: repositories on remote hosts'
+ 'python-llfuse: mounting backups as a FUSE file system')
+makedepends=('cython' 'python-sphinx' 'python-guzzle-sphinx-theme')
+checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-benchmark' 'python-mock')
+provides=('borgbackup')
+replaces=('borgbackup')
+source=("https://github.com/$_pkgname/$pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tar.gz"
+ borg.coveragerc)
+sha256sums=('22a4a53840886180e87de5636356f29e491209365861007c31d7f18220c72cb2'
+ '183814ae70fce7bbcf04dbbf3866eaf76867896a4327f8a3b553e095d1ff360f')
+
+prepare() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ sed -i "s/msgpack-python/msgpack/g" setup.py
+}
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir/$_pkgname-$pkgver/build/lib.linux-$CARCH-3.6/"
+ LANG=en_US.UTF-8 PYTHONPATH="$PWD:$PYTHONPATH" py.test --cov=borg \
+ --cov-config="$srcdir/borg.coveragerc" --benchmark-skip --pyargs borg.testsuite -v \
+ -k 'not test_non_ascii_acl'
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ python setup.py -q install --root="$pkgdir" --optimize=1
+
+ install -Dm644 scripts/shell_completions/bash/borg \
+ "$pkgdir/usr/share/bash-completion/completions/borg"
+ install -Dm644 scripts/shell_completions/fish/borg.fish \
+ "$pkgdir/usr/share/fish/completions/borg.fish"
+ install -Dm644 scripts/shell_completions/zsh/_borg "$pkgdir/usr/share/zsh/site-functions/_borg"
+
+ install -Dm644 -t "$pkgdir/usr/share/man/man1/" "docs/man/"*.1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Copied: borg/repos/community-staging-x86_64/borg.coveragerc (from rev 287604, borg/trunk/borg.coveragerc)
===================================================================
--- community-staging-x86_64/borg.coveragerc (rev 0)
+++ community-staging-x86_64/borg.coveragerc 2018-01-28 08:31:53 UTC (rev 287605)
@@ -0,0 +1,23 @@
+[run]
+branch = True
+source = src/borg
+omit =
+ */borg/__init__.py
+ */borg/__main__.py
+ */borg/_version.py
+ */borg/fuse.py
+ */borg/support/*
+ */borg/testsuite/*
+ */borg/hash_sizes.py
+
+[report]
+exclude_lines =
+ pragma: no cover
+ pragma: freebsd only
+ pragma: unknown platform only
+ def __repr__
+ raise AssertionError
+ raise NotImplementedError
+ if 0:
+ if __name__ == .__main__.:
+ignore_errors = True
More information about the arch-commits
mailing list