git » android-tools.git » commit e090244

Calculate boringssl version dynamically

author Anatol Pomozov
2019-07-19 00:16:54 UTC
committer Anatol Pomozov
2019-07-19 00:16:54 UTC
parent 3ac72036bfb2eeebd67830769f53fef2ebfde0cb

Calculate boringssl version dynamically

PKGBUILD +1 -2

diff --git a/PKGBUILD b/PKGBUILD
index 647d208..3e1bf28 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,8 +14,7 @@ optdepends=('python: for mkbootimg script')
 makedepends=(git clang gtest ruby cmake ninja go-pie)
 provides=(fastboot adb)
 conflicts=(fastboot adb)
-# keep the boringssl commit in sync with android tree https://android.googlesource.com/platform/external/boringssl/+/$pkgver/BORINGSSL_REVISION
-_boringssl_commit=45210dd4e21ace9d28cb76b3f83303fcdd2efcce
+_boringssl_commit=`curl https://android.googlesource.com/platform/external/boringssl/+/refs/tags/android-$pkgver/BORINGSSL_REVISION?format=TEXT | base64 -d`
 source=(git+https://android.googlesource.com/platform/system/core#tag=android-$pkgver
         git+https://android.googlesource.com/platform/system/extras#tag=android-$pkgver
         git+https://android.googlesource.com/platform/external/selinux#tag=android-$pkgver