summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelrelb2020-08-14 12:41:49 +0300
committerrelrelb2020-08-14 12:46:29 +0300
commitddd79a8a817ca7668a96ff3df877e420a598f0dd (patch)
treecc121a74870e3f046a7f1c5c85e9b96d4587b90b
parent51ca22a952b2eace8513347e5f3f8bddfebd5ded (diff)
downloadaur-ddd79a8a817ca7668a96ff3df877e420a598f0dd.tar.gz
Small improvements
-rw-r--r--PKGBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6884ee9adae..994ea1a9e28 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,11 +1,11 @@
-# Maintainer: relrelb <relrelbachar@gmail.com>
+# Maintainer: relrel <relrelbachar@gmail.com>
pkgname=android-completion
-pkgver=20200805193204.a39e39f
+pkgver=20200814022526.278f11b
pkgrel=1
pkgdesc="Bash completion for adb and fastboot"
arch=(any)
url="https://android.googlesource.com/platform/system/core/"
-license=('GPL')
+license=('Apache')
depends=('android-sdk-platform-tools' 'bash' 'bash-completion')
conflicts=('android-bash-completion')
_commit=$(echo $pkgver | cut -d. -f2)
@@ -19,7 +19,7 @@ sha512sums=('450cdf58661537b0d1fcdf191a6b635ac87eb3cfeb3187106409bb92f71ae0b73df
pkgver() {
head=$(curl -sSf 'https://android.googlesource.com/platform/system/core/+/HEAD?format=JSON' | sed 's/$/\\n/' | tr -d '\n')
commit=$(echo -e $head | grep -oP '^\s*"commit":\s*"\K[0-9a-f]+(?=",?)')
- timestamp=$(echo -e $head | grep -A3 '^\s*"committer": {' | grep -oP '^\s*"time":\s*"\K.+(?=",?)')
+ timestamp=$(echo -e $head | grep -A3 '^\s*"committer":\s*{' | grep -oP '^\s*"time":\s*"\K.+(?=",?)')
month=$(echo $timestamp | cut -d' ' -f2)
day=$(echo $timestamp | cut -d' ' -f3)
time=$(echo $timestamp | cut -d' ' -f4)