summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateen Ulhaq2020-11-14 16:51:35 -0800
committerMateen Ulhaq2020-11-14 16:51:35 -0800
commit5116737e7ffddb95a2c3840b58bb1a60ff1fc42d (patch)
tree114491c0866f9c6d55006a408051efc0fb2342e3
parentfc72e77e551aa4341dc674a919192ca91bf973b9 (diff)
downloadaur-5116737e7ffddb95a2c3840b58bb1a60ff1fc42d.tar.gz
install license, tweak depends, cargo build --locked
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD20
2 files changed, 12 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 42c2cb83c517..e7f63032856e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,13 @@
pkgbase = gping-git
pkgdesc = Ping, but with a graph
- pkgver = v0.1.5.r1.g7e8b360
+ pkgver = 0.1.6.r9.g3179477
pkgrel = 1
url = https://github.com/orf/gping
arch = x86_64
license = MIT
makedepends = cargo
makedepends = git
- depends = gcc-libs
+ depends = iputils
provides = gping
conflicts = gping
source = gping-git::git+https://github.com/orf/gping
diff --git a/PKGBUILD b/PKGBUILD
index 11bc9735c3c7..a03e8151829e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,32 @@
# Maintainer: Mateen Ulhaq <mulhaq2005+aur at gmail dot com>
pkgname=gping-git
-pkgver=v0.1.5.r1.g7e8b360
+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=("gcc-libs")
+depends=("iputils")
makedepends=("cargo" "git")
-provides=("gping")
-conflicts=("gping")
-source=("$pkgname::git+https://github.com/orf/gping")
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("$pkgname::git+$url")
sha256sums=("SKIP")
pkgver() {
cd "$pkgname"
- git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
- cargo build --release
+ cargo build --release --locked
}
package() {
cd "$pkgname"
- install -Dm755 "target/release/gping" "$pkgdir/usr/bin/gping"
- # install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/gping/LICENSE"
- install -Dm644 "readme.md" "$pkgdir/usr/share/doc/gping/README.md"
+ install -Dm755 "target/release/${pkgname%-git}" -t "$pkgdir/usr/bin"
+ install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
+ install -Dm644 "readme.md" -t "$pkgdir/usr/share/doc/${pkgname%-git}"
}