[arch-commits] Commit in restic/repos (community-x86_64 community-x86_64/PKGBUILD)

Morten Linderud foxboron at archlinux.org
Mon Mar 26 14:02:18 UTC 2018


    Date: Monday, March 26, 2018 @ 14:02:18
  Author: foxboron
Revision: 312686

archrelease: copy trunk to community-x86_64

Added:
  restic/repos/community-x86_64/
  restic/repos/community-x86_64/PKGBUILD
    (from rev 312685, restic/trunk/PKGBUILD)

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

Copied: restic/repos/community-x86_64/PKGBUILD (from rev 312685, restic/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-03-26 14:02:18 UTC (rev 312686)
@@ -0,0 +1,36 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+pkgname=restic
+pkgver=0.8.3
+pkgrel=2
+pkgdesc="Fast, secure, efficient backup program"
+arch=('x86_64')
+url="https://restic.net"
+license=('BSD')
+makedepends=('go-pie')
+checkdepends=('fuse2')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/restic/restic/archive/v${pkgver}.tar.gz")
+sha256sums=('0cf697c88404b180d6d6ff2e7d2c27b2fcb9536da6dbdf15ad4d320af7e8f17c')
+
+prepare(){
+  export GOPATH="${srcdir}"
+  mkdir -p src
+  mv "${pkgname}-${pkgver}"/vendor/* src/
+  mkdir -p src/github.com/restic
+  ln -rTsf "${pkgname}-${pkgver}" src/github.com/restic/restic
+}
+
+build(){
+  cd "${pkgname}-${pkgver}"
+  export GOPATH="${srcdir}"
+  go build ./cmd/restic
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm755 restic "${pkgdir}/usr/bin/restic"
+  install -Dm644 -t "$pkgdir/usr/share/man/man1/" doc/man/*.1
+  install -Dm644 doc/zsh-completion.zsh "$pkgdir/usr/share/zsh/site-functions/_restic"
+  install -Dm644 doc/bash-completion.sh "$pkgdir/usr/share/bash-completion/completions/restic"
+
+}



More information about the arch-commits mailing list