Package Details: resticprofile 0.29.0-1

Git Clone URL: https://aur.archlinux.org/resticprofile.git (read-only, click to copy)
Package Base: resticprofile
Description: Configuration profiles manager and scheduler for restic backup
Upstream URL: https://github.com/creativeprojects/resticprofile
Licenses: GPL3
Submitter: metalspork
Maintainer: yan12125 (lilac)
Last Packager: lilac
Votes: 7
Popularity: 0.003059
First Submitted: 2021-02-09 03:30 (UTC)
Last Updated: 2024-10-28 20:40 (UTC)

Latest Comments

yan12125 commented on 2024-08-19 09:09 (UTC)

dreieck: Thanks! These points make sense. Could you check whether this change works for you or not?

diff --git a/archlinuxcn/resticprofile/PKGBUILD b/archlinuxcn/resticprofile/PKGBUILD
index ab4b9c3ac3e..e1f31a207fc 100644
--- a/archlinuxcn/resticprofile/PKGBUILD
+++ b/archlinuxcn/resticprofile/PKGBUILD
@@ -15,6 +15,12 @@ options=(!lto)
 source=("git+https://github.com/creativeprojects/resticprofile.git#tag=v$pkgver")
 sha256sums=('37cccfa7da36e87b04a4a1d1b59d3cb559f9970002ea6a9dd678f20e65a8bf4b')

+prepare() {
+    cd resticprofile
+
+    go mod download
+}
+
 build() {
     cd resticprofile

dreieck commented on 2024-08-18 13:05 (UTC) (edited on 2024-08-18 13:06 (UTC) by dreieck)

Hmm, what's the benefit of avoiding Internet connection in build() while still allowing it in prepare()?

The rust package guidelines already suggest this, the go guidelines are not (yet) that explicit.

  • One (for me, frequent) use case is that once a makepkg -sfo can be made (also batched or via wrappers, to download all packages to be updated/ installed at once), so that the time while beeing on "thick" internet can be used efficiently, and later the time consuming build can be done later when not anymore connected to internet or to "thick" internet (e.g. at home at 1Mbps).
  • Other use case (also needed sometimes for e.g. debugging): After a makepkg -sfo all sources are present, so if one wants to poke around before a build once can do and then just to makepkg -esf to build whatever is there after poking around.

yan12125 commented on 2024-07-11 12:39 (UTC)

Done!

DenisBY commented on 2024-07-11 07:52 (UTC)

Please add aarch64. It builds and runs perfectly on Pi4

yan12125 commented on 2024-01-06 05:23 (UTC)

Hmm, what's the benefit of avoiding Internet connection in build() while still allowing it in prepare()? In either cases, downloaded sources are not directly verified by makepkg. (still verified indirectly via go.sum included in the tarball in this case)

dreieck commented on 2024-01-05 14:48 (UTC)

Can you please move all that (go-specific) download stuff out from build() into prepare(), so that no internet connection is needed in build() and package()?:

==> Starting build()...
go: downloading github.com/coreos/go-systemd/v22 v22.5.0
go: downloading github.com/creativeprojects/clog v0.14.0
go: downloading github.com/creativeprojects/go-selfupdate v1.1.2
go: downloading github.com/distatus/battery v0.11.0
[...]

Regards and thanks for maintaining!

yan12125 commented on 2023-09-30 02:49 (UTC)

FWIW, here is a working PKGBUILD for 0.23.0

diff --git PKGBUILD PKGBUILD
index a3a2d1c..ba393f7 100644
--- PKGBUILD
+++ PKGBUILD
@@ -2,8 +2,8 @@
 # Contributor: Kyle Brennan <kyle@metalspork.xyz>

 pkgname=resticprofile
-pkgver=0.19.0
-_commit_hash="01bbd7852d09fc05fcbda22ace207b315550c741"
+pkgver=0.23.0
+_commit_hash="1024189afa2ffc59f3bf1025db732b674988844c"
 pkgrel=1
 pkgdesc="Configuration profiles manager and scheduler for restic backup"
 arch=("x86_64")
@@ -13,7 +13,7 @@ depends=("glibc" "restic")
 makedepends=("go")
 options=(!lto)
 source=("https://github.com/creativeprojects/resticprofile/archive/v${pkgver}.tar.gz")
-sha256sums=("304c370965735be61d0947d13bef18099a9cc1754bb7bd38350f690c057e808d")
+sha256sums=('d7e92c931f09e849eef935a9ebf4887274ae7d95395e11a43ed7291e4493419d')

 build() {
     cd "resticprofile-${pkgver}"

faisalm commented on 2021-10-14 03:39 (UTC)

Upgrade to 0.15.0 just requires a change to the version and sha256sum in the PKGBUILD.

diff --git a/PKGBUILD b/PKGBUILD
index 91e5b2d..17b6d16 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
 # Maintainer: Kyle Brennan <kyle@metalspork.xyz>
 pkgname=resticprofile
-pkgver=0.11.0
+pkgver=0.15.0
 pkgrel=1
 pkgdesc='Configuration profiles for restic backup'
 arch=('x86_64')
@@ -10,7 +10,7 @@ depends=('glibc' 'restic')
 makedepends=('git' 'make' 'go')
 provides=('resticprofile')
 source=("https://github.com/creativeprojects/resticprofile/archive/v$pkgver.tar.gz")
-sha256sums=('219d2c5155d23a3a6816fb6028639e70861fb03dccef0e5b54cf8b081b61b30b')
+sha256sums=('10e7335b821d6e1399bd1f718eed5c1b726a8210fd36f20338cd0b4e2211efd4')

 importpath='github.com/restic/resticprofile'