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

Anatol Pomozov anatolik at archlinux.org
Thu Oct 8 16:36:31 UTC 2020


    Date: Thursday, October 8, 2020 @ 16:36:30
  Author: anatolik
Revision: 721779

upgpkg: android-tools 30.0.4-2: Use compilation flags provided by makepkg

Modified:
  android-tools/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-08 16:04:44 UTC (rev 721778)
+++ PKGBUILD	2020-10-08 16:36:30 UTC (rev 721779)
@@ -4,7 +4,7 @@
 
 pkgname=android-tools
 pkgver=30.0.4
-pkgrel=1
+pkgrel=2
 _tag=platform-tools-$pkgver
 pkgdesc='Android platform tools'
 arch=(x86_64)
@@ -29,7 +29,7 @@
         git+https://android.googlesource.com/platform/external/e2fsprogs#tag=$_tag
         git+https://android.googlesource.com/platform/external/avb#tag=$_tag
         git+https://android.googlesource.com/platform/external/boringssl#tag=$_tag
-	build.ninja # copied from https://github.com/anatol/android-platform-tools-build
+        build.ninja # copied from https://github.com/anatol/android-platform-tools-build
 # deployagent.jar is a library built from Android sources.
 # Building this java library requires a lot of dependencies:
 #  java, protobuf-java, dex compiler, Android base libs.
@@ -83,6 +83,12 @@
   cd "$srcdir"/boringssl
   patch -p1 < ../boringssl-disable-thirdpartydeps.patch
   mkdir -p "$srcdir"/boringssl/src/build
+
+  cd "$srcdir"
+  sed "s/CFLAGS =.*/CFLAGS = $CFLAGS/" -i build.ninja
+  sed "s/CPPFLAGS =.*/CPPFLAGS = $CPPFLAGS/" -i build.ninja
+  sed "s/CXXFLAGS =.*/CXXFLAGS = $CXXFLAGS/" -i build.ninja
+  sed "s/LDFLAGS =.*/LDFLAGS = $LDFLAGS/" -i build.ninja
 }
 
 build() {


More information about the arch-commits mailing list