Package Details: gping-git 1.2.3.r4.ga95a678-1

Git Clone URL: https://aur.archlinux.org/gping-git.git (read-only, click to copy)
Package Base: gping-git
Description: Ping, but with a graph
Upstream URL: https://github.com/orf/gping
Licenses: MIT
Conflicts: gping
Provides: gping
Submitter: yodaembedding
Maintainer: yodaembedding
Last Packager: yodaembedding
Votes: 2
Popularity: 0.000000
First Submitted: 2020-11-13 22:33 (UTC)
Last Updated: 2021-08-06 10:48 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

MithicSpirit commented on 2021-07-20 14:18 (UTC)

Because upstream has changed their versioning scheme, pkgver() now returns gping.v1.2.3.r2.g5960439, which is interpreted as a downgrade from 0.1.6.r9.g3179477, which is what the PKGBUILD reports as the version. This causes issues with AUR helpers which can check for updates as they think that the version that is built is always older than the version available from the AUR. It would be nice if the pkgver was updated to the current value, or, better yet, was updated to a generic value like latest, or maybe even set to 0, as suggested in the forums.

orhun commented on 2020-11-14 14:05 (UTC) (edited on 2020-12-12 09:47 (UTC) by orhun)

A few issues about PKGBUILD:

  • You have to trim v from the version. Update sed as following:
pkgver() {
    cd "$pkgname"
    git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
  • Specify iputils package in depends. (provides ping which is necessary for gping to work)
  • --locked flag must be specified in cargo build for package reproducibility.
  • LICENSE is present in the upstream. Please install it.

Updated PKGBUILD:

# Maintainer: Mateen Ulhaq <mulhaq2005+aur at gmail dot com>

pkgname=gping-git
pkgver=0.1.6.r9.g3179477
pkgrel=1
pkgdesc="Ping, but with a graph"
arch=("x86_64")
url="https://github.com/orf/gping"
license=("MIT")
depends=("iputils")
makedepends=("cargo" "git")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url")
sha256sums=("SKIP")

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

build() {
    cd "$pkgname"
    cargo build --release --locked
}

package() {
    cd "$pkgname"
    install -Dm755 "target/release/${pkgname%-git}" -t "$pkgdir/usr/bin"
    install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/gping"
    install -Dm644 "readme.md" -t "$pkgdir/usr/share/doc/gping"
}

xiretza commented on 2020-11-14 10:04 (UTC)

FYI, a LICENSE file is available now: https://github.com/orf/gping/commit/4f03d45a012fccd62f384a16c3ef0d3b3e954132