diff options
author | taotieren | 2024-12-06 00:05:25 +0800 |
---|---|---|
committer | taotieren | 2024-12-06 00:05:25 +0800 |
commit | 5d4f32b89c3fb6188131c7fd8049191edca6d646 (patch) | |
tree | fbfa415e76bef046d3fe72975072e22fddf48e4f | |
parent | b2157c9dca258efa447acd3adf11e8332108c90e (diff) | |
download | aur-myip-git.tar.gz |
[lilac] updated to 0.5.1.r1.ge74c157-4
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 8 insertions, 11 deletions
@@ -1,11 +1,9 @@ pkgbase = myip-git pkgdesc = Returns your public IP and the public IP to access the extranet. - pkgver = 0.4.6.r0.g0a123b9 - pkgrel = 1 + pkgver = 0.5.1.r1.ge74c157 + pkgrel = 4 url = https://github.com/crystal-china/myip arch = x86_64 - arch = aarch64 - arch = riscv64 license = MIT makedepends = cmake makedepends = git @@ -1,12 +1,10 @@ # Maintainer: taotieren <admin@taotieren.com> pkgname=myip-git -pkgver=0.4.6.r0.g0a123b9 -pkgrel=1 +pkgver=0.5.1.r1.ge74c157 +pkgrel=4 pkgdesc="Returns your public IP and the public IP to access the extranet." -arch=(x86_64 - aarch64 - riscv64) +arch=($CARCH) url="https://github.com/crystal-china/myip" license=('MIT') provides=(${pkgname%-git}) @@ -38,9 +36,10 @@ prepare() { pkgver() { cd "${srcdir}/${pkgname}" - ( set -o pipefail + ( + set -o pipefail git describe --long --tag --abbrev=7 2>/dev/null | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g' || - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" ) } |