Files
kopia/PKGBUILD
Christian Heusel 5dc45fc78d upgpkg: kopia 0.13.0-1
upstream release

Signed-off-by: Christian Heusel <christian@heusel.eu>
2023-05-01 21:03:19 +02:00

28 lines
1.0 KiB
Bash

# Maintainer: Christian Heusel <christian@heusel.eu>
# Contributor: Jens Jäschke <arch [at] jensjaeschke [dot] de>
pkgname=kopia
pkgdesc='A cross-platform backup-tool with encryption, deduplication, compression and cloud support.'
pkgver=0.13.0
pkgrel=1
arch=('x86_64')
url='https://kopia.io'
license=('APACHE')
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::https://github.com/kopia/kopia/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('017fe4375207ce2ed73433b072249882735de1a8a5aedebec2ca1c6fee9e5a9b')
build() {
cd $pkgname-$pkgver
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
go build -ldflags "-linkmode=external -X github.com/kopia/kopia/repo.BuildVersion=$pkgver-$pkgrel -X github.com/kopia/kopia/repo.BuildInfo=unofficial -X github.com/kopia/kopia/repo.BuildGitHubRepo=ARCH_USER_REPOSITORY"
}
package() {
install -Dm755 "$pkgname-$pkgver/kopia" "$pkgdir/usr/bin/kopia"
}