[arch-commits] Commit in borg/repos (2 files)

Jan Steffens heftig at archlinux.org
Sun Jul 29 13:35:16 UTC 2018


    Date: Sunday, July 29, 2018 @ 13:35:16
  Author: heftig
Revision: 364510

archrelease: copy trunk to community-staging-x86_64

Added:
  borg/repos/community-staging-x86_64/
  borg/repos/community-staging-x86_64/PKGBUILD
    (from rev 364509, borg/trunk/PKGBUILD)

----------+
 PKGBUILD |   62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

Copied: borg/repos/community-staging-x86_64/PKGBUILD (from rev 364509, borg/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-07-29 13:35:16 UTC (rev 364510)
@@ -0,0 +1,62 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Vlad M. <vlad at archlinux.net>
+
+pkgname=borg
+_pkgname=borgbackup
+pkgver=1.1.6
+pkgrel=3
+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"
+        "https://github.com/borgbackup/borg/commit/d6ce4d9e7e28b89fbedcd883cac2912415164449.patch"
+        "https://github.com/borgbackup/borg/commit/b951a2ee429dd86fb122820867dd7d0954b49951.patch")
+sha256sums=('a1d2e474c85d3ad3d59b3f8209b5549653c88912082ea0159d27a2e80c910930'
+            '9974ffa97694a06c9b30b943176775ccc02927c1baea165955ab5c6e3cab85d4'
+            '01026a97983be999352c77d326025db40d4cb51bf30928bff692153dd101a751')
+
+prepare() {
+  cd "$srcdir/$_pkgname-$pkgver"
+  # msgpack versions are constantly broken: https://bugs.archlinux.org/task/58974
+  patch -p1 -i ../d6ce4d9e7e28b89fbedcd883cac2912415164449.patch
+  # python 3.7 fix
+  patch -p1 -i ../b951a2ee429dd86fb122820867dd7d0954b49951.patch
+}
+
+build() {
+  cd "$srcdir/$_pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir/$_pkgname-$pkgver/build/lib.linux-$CARCH-"*
+  LANG=en_US.UTF-8 PYTHONPATH="$PWD:$PYTHONPATH" py.test --cov=borg \
+    --benchmark-skip --pyargs borg.testsuite -v \
+    -k 'not test_non_ascii_acl'
+}
+
+package() {
+  cd "$srcdir/$_pkgname-$pkgver"
+
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  # remove junk files
+  rm -r "$pkgdir"/usr/lib/python*/site-packages/{.benchmarks,.coverage}
+
+  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"
+}



More information about the arch-commits mailing list