Package Details: snapborg 0.1.1-1

Git Clone URL: https://aur.archlinux.org/snapborg.git (read-only, click to copy)
Package Base: snapborg
Description: Automated backups of snapper snapshots to borg repositories, inspired by borgmatic
Upstream URL: https://github.com/enzingerm/snapborg
Licenses: GPL3
Provides: snapborg
Submitter: maradas
Maintainer: maradas
Last Packager: maradas
Votes: 3
Popularity: 0.30
First Submitted: 2021-08-19 06:45 (UTC)
Last Updated: 2025-12-16 14:22 (UTC)

Latest Comments

maradas commented on 2025-12-16 14:24 (UTC)

Thanks @xenu for the hint. I dropped the pkgver() function from the PKGBUILD because there is no need to dynamically create a pkgver from the sources.

xenu commented on 2025-12-15 14:42 (UTC) (edited on 2025-12-15 14:53 (UTC) by xenu)

After yesterdays update there seems to be an issue with the pkgver. snapborg is always build with a version different from pkgver. Reason could be:

git describe uses only annotated tags by default. Specify the --tags option to >make it use lightweight tags as well.

If I add the following changes to the PKGBUILD it works (not sure if this is the best way):

-- git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
++ git describe v${pkgver} --long --tags | sed 's/^v//g' | sed 's/-.*//g'

Or you could change this packages pkgver to match the upstream tag:

-- pkgver=0.1.1
++ pkgver=v0.1.1

And the pkgver() function git describe command could become:

-- git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
++ git describe ${pkgver} --long --tags | sed 's/-.*//g'

Infernio commented on 2023-04-22 08:02 (UTC)

This package currently doesn't build v0.1.0 but instead pulls the master branch and builds that. To match AUR conventions, it should either be renamed to snapborg-git and use git describe to generate its version number, or it should be changed to actually check out the 0.1.0 tag and build that (with a new -git package created since none of the upstream changes since then have made it into a release yet).