summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorenvolution2024-11-04 22:48:49 +0000
committerenvolution2024-11-04 22:48:49 +0000
commitdb511d026d2847be9095d9bbb157c8bde294cd80 (patch)
tree7ee96ab8f084eb42d3e103f1d0f779b8cdb5759d
parentaad27633a4139b30ae84ef939c2f3b5a62442101 (diff)
downloadaur-db511d026d2847be9095d9bbb157c8bde294cd80.tar.gz
Auto update aircrack-ng-git : 1.7+r4701+g8177f63da
-rw-r--r--.SRCINFO2
-rw-r--r--.nvchecker.toml3
-rw-r--r--PKGBUILD14
3 files changed, 16 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 47bbed53796f..3d1cf363b1d7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = aircrack-ng-git
pkgdesc = Key cracker for the 802.11 WEP and WPA-PSK protocols
- pkgver = 1.7
+ pkgver = 1.7+r4701+g8177f63da
pkgrel = 1
epoch = 1
url = https://www.aircrack-ng.org
diff --git a/.nvchecker.toml b/.nvchecker.toml
new file mode 100644
index 000000000000..01276662d65e
--- /dev/null
+++ b/.nvchecker.toml
@@ -0,0 +1,3 @@
+[aircrack-ng-git]
+source="cmd"
+cmd="~/nvchecker/github_version.sh aircrack-ng aircrack-ng"
diff --git a/PKGBUILD b/PKGBUILD
index f380fb997c99..277f0f8534a4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,8 +12,8 @@
# Contributor: codyps <archlinux@codyps.com>
pkgname=aircrack-ng-git
-_pkgver=1.7
-pkgver=1.7+r661+g8177f63d
+_pkgver=1.7+r4701+g8177f63da
+pkgver=1.7+r4701+8177f63da
pkgrel=1
epoch=1
pkgdesc="Key cracker for the 802.11 WEP and WPA-PSK protocols"
@@ -39,6 +39,16 @@ pkgver() {
cd aircrack-ng
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
+pkgver() {
+ cd aircrack-ng
+
+ _version=$(git tag --sort=-v:refname --list | grep '^[0-9.]*$' | head -n1)
+ _commits=$(git rev-list --count HEAD)
+ _short_commit_hash=$(git rev-parse --short=9 HEAD)
+ echo "${_version}+r${_commits}+${_short_commit_hash}"
+}
+
+
prepare() {
cd aircrack-ng