Package Details: gping-git 0.1.6.r9.g3179477-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: 0
Popularity: 0.000000
First Submitted: 2020-11-13 22:33
Last Updated: 2020-11-15 00:51

Required by (0)

Sources (1)

Latest Comments

orhun commented on 2020-11-14 14:05

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'
}
  • gcc-libs is redundant in depends array. You can specify iputils package there instead. (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

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