[arch-commits] Commit in android-tools/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Fri Aug 30 07:47:01 UTC 2019


    Date: Friday, August 30, 2019 @ 07:47:00
  Author: ffy00
Revision: 505169

quote $srcdir and replace `` with $()

Modified:
  android-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-30 06:51:40 UTC (rev 505168)
+++ PKGBUILD	2019-08-30 07:47:00 UTC (rev 505169)
@@ -15,7 +15,7 @@
 makedepends=(git clang gtest ruby cmake ninja go-pie)
 provides=(fastboot adb)
 conflicts=(fastboot adb)
-_boringssl_commit=`curl https://android.googlesource.com/platform/external/boringssl/+/refs/tags/$tag/BORINGSSL_REVISION?format=TEXT | base64 -d`
+_boringssl_commit=$(curl https://android.googlesource.com/platform/external/boringssl/+/refs/tags/$tag/BORINGSSL_REVISION?format=TEXT | base64 -d)
 source=(git+https://android.googlesource.com/platform/system/core#tag=$tag
         git+https://android.googlesource.com/platform/system/extras#tag=$tag
         git+https://android.googlesource.com/platform/system/tools/mkbootimg#tag=$tag
@@ -45,16 +45,16 @@
 prepare() {
   PLATFORM_TOOLS_VERSION="$pkgver" LDFLAGS='-Wl,-z,relro,-z,now' ./generate_build.rb > build.ninja
 
-  cd $srcdir/core
+  cd "$srcdir"/core
   patch -p1 < ../fix_build_core.patch
 
-  cd $srcdir/e2fsprogs
+  cd "$srcdir"/e2fsprogs
   patch -p1 < ../fix_build_e2fsprogs.patch
 
-  cd $srcdir/avb
+  cd "$srcdir"/avb
   sed -i 's|/usr/bin/env python$|/usr/bin/env python2|g' avbtool
 
-  mkdir -p $srcdir/boringssl/build && cd $srcdir/boringssl/build && cmake -GNinja ..; ninja crypto/libcrypto.a
+  mkdir -p "$srcdir"/boringssl/build && cd "$srcdir"/boringssl/build && cmake -GNinja ..; ninja crypto/libcrypto.a
 }
 
 build() {


More information about the arch-commits mailing list