diff --git a/community/libphonenumber/APKBUILD b/community/libphonenumber/APKBUILD index 51b14df9748..968ebae267a 100644 --- a/community/libphonenumber/APKBUILD +++ b/community/libphonenumber/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Bart Ribbers pkgname=libphonenumber pkgver=8.12.44 -pkgrel=2 +pkgrel=3 pkgdesc="Library for parsing, formatting, and validating international phone numbers." url="https://github.com/google/libphonenumber" arch="all" @@ -23,6 +23,7 @@ subpackages="$pkgname-static $pkgname-dev" source="https://github.com/google/libphonenumber/archive/v$pkgver/libphonenumber-v$pkgver.tar.gz cmake-duplicate-rule-definition.patch system-abseil.patch + c++17.patch " build() { @@ -49,4 +50,5 @@ sha512sums=" 3343fb1f8a41d4fcd056de3d6a66ab938a81fde7f006d8e9805a4903d9779fd781cdab779649b75efe8860ff979df60b386afdc2c0aab5e66a350ce723a6371e libphonenumber-v8.12.44.tar.gz dc76f0649c401ec97a7449373b96247135c3b80cf1e5bb8afba005fed1055a74429d3c778b7519b609bdcfbb278be395ef83e0bd00228239b6f15d96b0d2df11 cmake-duplicate-rule-definition.patch b6d2eed233817810676a74c50533968029784b4ea0e16c45a31520e5bb5965518455ec0b2e0ef61c652ce52b840b9d6514b0a26c4941056a7dbff359303610d8 system-abseil.patch +12aa540caf28e7b6a6ab93c8ddc60753f4ced446f4763ca87809218cdac8209cdc2c3c82b8efda563130b178de14d3c0f9e87f0c7108dddd63c211089ee8331c c++17.patch " diff --git a/community/libphonenumber/c++17.patch b/community/libphonenumber/c++17.patch new file mode 100644 index 00000000000..202e3315949 --- /dev/null +++ b/community/libphonenumber/c++17.patch @@ -0,0 +1,13 @@ +Use c++17 as abseil-cpp now compiled with c++17 + +--- a/cpp/CMakeLists.txt ++++ b/cpp/CMakeLists.txt +@@ -18,7 +18,7 @@ + + # Pick the C++ standard to compile with. + # Abseil currently supports C++11, C++14, and C++17. +-set(CMAKE_CXX_STANDARD 11) ++set(CMAKE_CXX_STANDARD 17) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + + project (libphonenumber)