summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortaotieren2024-12-06 00:05:25 +0800
committertaotieren2024-12-06 00:05:25 +0800
commit5d4f32b89c3fb6188131c7fd8049191edca6d646 (patch)
treefbfa415e76bef046d3fe72975072e22fddf48e4f
parentb2157c9dca258efa447acd3adf11e8332108c90e (diff)
downloadaur-myip-git.tar.gz
[lilac] updated to 0.5.1.r1.ge74c157-4
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD13
2 files changed, 8 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cf11b6696cad..03380e042bbe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index a8a6e4e2ea57..1201a923fe01 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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)"
)
}