diff --git a/.SRCINFO b/.SRCINFO index 18673d7..84d4614 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,13 +1,13 @@ pkgbase = kopia pkgdesc = A cross-platform backup-tool with encryption, deduplication, compression and cloud support. - pkgver = 0.11.3 + pkgver = 0.12.1 pkgrel = 1 url = https://kopia.io arch = x86_64 license = APACHE - makedepends = go>=1.17 + makedepends = go depends = glibc - source = kopia-0.11.3.tar.gz::https://github.com/kopia/kopia/archive/refs/tags/v0.11.3.tar.gz - sha256sums = da677cbaace0d22b35edbab88d4f8ad7c2c00fc9c1c474130d37abce48f39b6f + source = kopia-0.12.1.tar.gz::https://github.com/kopia/kopia/archive/refs/tags/v0.12.1.tar.gz + sha256sums = c42d4c7c7d0e3e0c80cfee1e42b7567264d97e36d18d2d5e7b675cd7e2fdb5a6 pkgname = kopia diff --git a/PKGBUILD b/PKGBUILD index 3d898f1..1548955 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,36 +1,28 @@ -# Maintainer: Jens Jäschke +# Maintainer: Christian Heusel +# Contributor: Jens Jäschke pkgname=kopia pkgdesc='A cross-platform backup-tool with encryption, deduplication, compression and cloud support.' -pkgver=0.11.3 +pkgver=0.12.1 pkgrel=1 arch=('x86_64') url='https://kopia.io' license=('APACHE') depends=('glibc') -makedepends=('go>=1.17') -#makedepends=('go>=1.15', 'git') # git is needed if we switch to signed git commits/tags in the future -#source=("$pkgname-$pkgver::git+https://github.com/kopia/kopia.git#commit=$(git rev-list -n 1 v$pkgver)?signed") # use git commit, if those are signed by a proper key in the future -#source=("$pkgname-$pkgver::git+https://github.com/kopia/kopia.git#tag=v$pkgver?signed") # use git tag, if those are signed by a proper key in the future -source=("$pkgname-$pkgver.tar.gz::https://github.com/kopia/kopia/archive/refs/tags/v$pkgver.tar.gz") # use unsigned tarball for now. -sha256sums=('da677cbaace0d22b35edbab88d4f8ad7c2c00fc9c1c474130d37abce48f39b6f') -#checksums calculated by packager, no checksums available from upstream for source tarball. +makedepends=('go') +source=("$pkgname-$pkgver.tar.gz::https://github.com/kopia/kopia/archive/refs/tags/v$pkgver.tar.gz") +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 -ldflags=-linkmode=external -mod=readonly -modcacherw" - echo "$CGO_CFLAGS \n $CGO_CPPFLAGS \n $CGO_CXXFLAGS \n $CGO_LDFLAGS" - #make html-ui - #go build -tags embedhtml - go build -ldflags "-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" + 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" + install -Dm755 "$pkgname-$pkgver/kopia" "$pkgdir/usr/bin/kopia" }