commit eb52a8302ce7bfc4d6eaeedf0c4d0859fd75f80f
parent 4ec2bdf398d74a3ecf4a9293360d183619711ca3
Author: Nihal Jere <nihal@nihaljere.xyz>
Date: Tue, 5 Jan 2021 21:48:20 -0600
android-tools: new package
Diffstat:
22 files changed, 149 insertions(+), 0 deletions(-)
diff --git a/android-tools/build b/android-tools/build
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+mkdir -p build
+cd build
+
+cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None
+
+make
+make DESTDIR="$1" install
diff --git a/android-tools/checksums b/android-tools/checksums
@@ -0,0 +1 @@
+1b870a3f28d75e4907c95dbe8e71b4014f56be636d089a75257ef3922ad39d62
diff --git a/android-tools/depends b/android-tools/depends
@@ -0,0 +1,10 @@
+cmake make
+eudev make
+gtest make
+go make
+protobuf
+pcre2 make
+perl make
+libusb make
+brotli
+lz4
diff --git a/android-tools/sources b/android-tools/sources
@@ -0,0 +1 @@
+https://github.com/nmeum/android-tools/releases/download/30.0.5/android-tools-30.0.5.tar.xz
diff --git a/android-tools/version b/android-tools/version
@@ -0,0 +1 @@
+29.0.6 1
diff --git a/brotli/build b/brotli/build
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+export DESTDIR="$1"
+
+cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
+
+cmake --build build
+cmake --install build
diff --git a/brotli/checksums b/brotli/checksums
@@ -0,0 +1 @@
+f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46
diff --git a/brotli/sources b/brotli/sources
@@ -0,0 +1 @@
+https://github.com/google/brotli/archive/v1.0.9.tar.gz
diff --git a/brotli/version b/brotli/version
@@ -0,0 +1 @@
+1.0.9 1
diff --git a/gtest/build b/gtest/build
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+for patch in *.patch; do
+ patch -Np1 -i "$patch"
+done
+
+sed -E "s|(GOOGLETEST_VERSION) [0-9\\.]+|\\1 1.10.0|" -i CMakeLists.txt
+
+cmake -B build . \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=ON \
+ -Dgtest_build_tests=OFF
+
+make -C build
+make -C build DESTDIR="$1" install
+
+find "$1" -name '*.pump' -print -delete
diff --git a/gtest/checksums b/gtest/checksums
@@ -0,0 +1,2 @@
+9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb release-1.10.0.tar.gz
+c75f41bcd83c201ac4b7c86f2c75489ecc9fd20c3b54a4ae21aef92aeef53f19 gtest-1.10.0-libversion.patch
diff --git a/gtest/depends b/gtest/depends
@@ -0,0 +1 @@
+
diff --git a/gtest/patches/gtest-1.10.0-libversion.patch b/gtest/patches/gtest-1.10.0-libversion.patch
@@ -0,0 +1,27 @@
+diff -ur a/googlemock/CMakeLists.txt b/googlemock/CMakeLists.txt
+--- a/googlemock/CMakeLists.txt 2020-02-24 22:42:28.960922857 -0500
++++ b/googlemock/CMakeLists.txt 2020-02-24 22:44:55.168453771 -0500
+@@ -100,8 +100,10 @@
+ else()
+ cxx_library(gmock "${cxx_strict}" src/gmock-all.cc)
+ target_link_libraries(gmock PUBLIC gtest)
++ set_target_properties(gmock PROPERTIES VERSION __GOOGLETEST_VERSION__)
+ cxx_library(gmock_main "${cxx_strict}" src/gmock_main.cc)
+ target_link_libraries(gmock_main PUBLIC gmock)
++ set_target_properties(gmock_main PROPERTIES VERSION __GOOGLETEST_VERSION__)
+ endif()
+ # If the CMake version supports it, attach header directory information
+ # to the targets for when we are part of a parent build (ie being pulled
+diff -ur a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt
+--- a/googletest/CMakeLists.txt 2020-02-24 22:42:28.967589562 -0500
++++ b/googletest/CMakeLists.txt 2020-02-24 22:45:20.125271052 -0500
+@@ -126,7 +126,9 @@
+ # are used for other targets, to ensure that gtest can be compiled by a user
+ # aggressive about warnings.
+ cxx_library(gtest "${cxx_strict}" src/gtest-all.cc)
++set_target_properties(gtest PROPERTIES VERSION __GOOGLETEST_VERSION__)
+ cxx_library(gtest_main "${cxx_strict}" src/gtest_main.cc)
++set_target_properties(gtest_main PROPERTIES VERSION __GOOGLETEST_VERSION__)
+ # If the CMake version supports it, attach header directory information
+ # to the targets for when we are part of a parent build (ie being pulled
+ # in via add_subdirectory() rather than being a standalone build).
diff --git a/gtest/patches/gtest-1.8.1-libversion.patch b/gtest/patches/gtest-1.8.1-libversion.patch
@@ -0,0 +1,29 @@
+diff --git a/googlemock/CMakeLists.txt b/googlemock/CMakeLists.txt
+index 8a8de1f..3d86a59 100644
+--- a/googlemock/CMakeLists.txt
++++ b/googlemock/CMakeLists.txt
+@@ -109,8 +109,10 @@ if (MSVC)
+ else()
+ cxx_library(gmock "${cxx_strict}" src/gmock-all.cc)
+ target_link_libraries(gmock PUBLIC gtest)
++ set_target_properties(gmock PROPERTIES VERSION ${GOOGLETEST_VERSION})
+ cxx_library(gmock_main "${cxx_strict}" src/gmock_main.cc)
+ target_link_libraries(gmock_main PUBLIC gmock)
++ set_target_properties(gmock_main PROPERTIES VERSION ${GOOGLETEST_VERSION})
+ endif()
+ # If the CMake version supports it, attach header directory information
+ # to the targets for when we are part of a parent build (ie being pulled
+diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt
+index 9ee7940..8099130 100644
+--- a/googletest/CMakeLists.txt
++++ b/googletest/CMakeLists.txt
+@@ -131,7 +131,9 @@ endif()
+ # are used for other targets, to ensure that gtest can be compiled by a user
+ # aggressive about warnings.
+ cxx_library(gtest "${cxx_strict}" src/gtest-all.cc)
++set_target_properties(gtest PROPERTIES VERSION ${GOOGLETEST_VERSION})
+ cxx_library(gtest_main "${cxx_strict}" src/gtest_main.cc)
++set_target_properties(gtest_main PROPERTIES VERSION ${GOOGLETEST_VERSION})
+ # If the CMake version supports it, attach header directory information
+ # to the targets for when we are part of a parent build (ie being pulled
+ # in via add_subdirectory() rather than being a standalone build).
diff --git a/gtest/patches/gtest-1.8.1-null-pointer.patch b/gtest/patches/gtest-1.8.1-null-pointer.patch
@@ -0,0 +1,17 @@
+diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc
+index 96b07c6..4af3e5a 100644
+--- a/googletest/src/gtest.cc
++++ b/googletest/src/gtest.cc
+@@ -2693,10 +2693,12 @@ void TestInfo::Run() {
+ test->Run();
+ }
+
++ if (test != NULL) {
+ // Deletes the test object.
+ impl->os_stack_trace_getter()->UponLeavingGTest();
+ internal::HandleExceptionsInMethodIfSupported(
+ test, &Test::DeleteSelf_, "the test fixture's destructor");
++ }
+
+ result_.set_elapsed_time(internal::GetTimeInMillis() - start);
+
diff --git a/gtest/sources b/gtest/sources
@@ -0,0 +1,2 @@
+https://github.com/google/googletest/archive/release-1.10.0.tar.gz
+patches/gtest-1.10.0-libversion.patch
diff --git a/gtest/version b/gtest/version
@@ -0,0 +1 @@
+1.10.0 1
diff --git a/protobuf/build b/protobuf/build
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+./configure \
+ --prefix=/usr
+
+make
+make DESTDIR="$1" install
diff --git a/protobuf/checksums b/protobuf/checksums
@@ -0,0 +1 @@
+50ec5a07c0c55d4ec536dd49021f2e194a26bfdbc531d03d1e9d4d3e27175659
diff --git a/protobuf/depends b/protobuf/depends
@@ -0,0 +1,4 @@
+autoconf make
+automake make
+libtool make
+zip
diff --git a/protobuf/sources b/protobuf/sources
@@ -0,0 +1 @@
+https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protobuf-cpp-3.14.0.tar.gz
diff --git a/protobuf/version b/protobuf/version
@@ -0,0 +1 @@
+3.14.0 1