-
-
Save hexchain/fdb8197454c9ebdbc9d4fffcd7264f7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: 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.12.1 | |
pkgrel=1 | |
arch=('x86_64') | |
url='https://kopia.io' | |
license=('APACHE') | |
depends=('glibc') | |
makedepends=('go>=1.17') | |
source=("$pkgname-$pkgver.tar.gz::https://github.com/kopia/kopia/archive/refs/tags/v$pkgver.tar.gz") # use unsigned tarball for now. | |
sha256sums=('c42d4c7c7d0e3e0c80cfee1e42b7567264d97e36d18d2d5e7b675cd7e2fdb5a6') | |
build() { | |
cd "$srcdir/$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() { | |
mkdir -p "$pkgdir/usr/bin/" | |
cp "$srcdir/$pkgname-$pkgver/kopia" "$pkgdir/usr/bin/" | |
chmod +x "$pkgdir/usr/bin/kopia" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment