[arch-commits] Commit in restic/trunk (PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Mon Oct 14 14:45:04 UTC 2019
Date: Monday, October 14, 2019 @ 14:45:03
Author: foxboron
Revision: 515703
upgpkg: restic 0.9.5-3
go 1.13.1 security rebuilds
Modified:
restic/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-14 13:41:42 UTC (rev 515702)
+++ PKGBUILD 2019-10-14 14:45:03 UTC (rev 515703)
@@ -1,34 +1,26 @@
# Maintainer: Morten Linderud <foxboron at archlinux.org>
pkgname=restic
pkgver=0.9.5
-pkgrel=2
+pkgrel=3
pkgdesc="Fast, secure, efficient backup program"
arch=('x86_64')
url="https://restic.net"
license=('BSD')
depends=('glibc')
-makedepends=('go-pie')
+makedepends=('go-pie' 'git')
optdepends=('fuse2: mount archive')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/restic/restic/archive/v${pkgver}.tar.gz")
sha256sums=('e22208e946ede07f56ef60c1c89de817b453967663ce4867628dff77761bd429')
-prepare(){
- export GOPATH="${srcdir}"
- mkdir -p src/github.com/restic
- #mv "${pkgname}-${pkgver}"/vendor/* src/
- ln -rTsf "${pkgname}-${pkgver}" src/github.com/restic/restic
-}
-
build(){
- cd "src/github.com/restic/restic"
+ cd "${pkgname}-${pkgver}"
export GOPATH="${srcdir}"
- go install -ldflags "-X 'main.version=${pkgver}' -extldflags ${LDFLAGS}" -gcflags "all=-trimpath=${GOPATH}" -asmflags "all=-trimpath=${GOPATH}" ./cmd/...
+ go build -mod=vendor -trimpath -ldflags "-X 'main.version=${pkgver}' -extldflags ${LDFLAGS}" ./cmd/...
}
package() {
- install -Dm755 bin/restic "${pkgdir}/usr/bin/restic"
-
cd "${pkgname}-${pkgver}"
+ install -Dm755 restic "${pkgdir}/usr/bin/restic"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 -t "$pkgdir/usr/share/man/man1/" doc/man/*.1
install -Dm644 doc/zsh-completion.zsh "$pkgdir/usr/share/zsh/site-functions/_restic"
More information about the arch-commits
mailing list