summaryrefslogtreecommitdiff
path: root/gtest
diff options
context:
space:
mode:
authorsrv <enmanuel.saravia.externo@pandero.com.pe>2025-05-15 11:53:02 +0200
committersrv <enmanuel.saravia.externo@pandero.com.pe>2025-05-15 11:53:02 +0200
commit692ca67859517f3896f2b39813a46220ac8b3998 (patch)
tree022a9a2e1f8959d6831c281e5242db11354d1074 /gtest
parent84d34fd85b33fb778df8940e2bfbd846c719cfa7 (diff)
add aardvark-dns, add gtest, add mandown
Diffstat (limited to 'gtest')
-rw-r--r--gtest/.gitignore18
-rw-r--r--gtest/.nvchecker.toml4
-rw-r--r--gtest/PKGBUILD59
-rw-r--r--gtest/README.md2
-rw-r--r--gtest/gtest-version.patch22
5 files changed, 105 insertions, 0 deletions
diff --git a/gtest/.gitignore b/gtest/.gitignore
new file mode 100644
index 0000000..e4912e4
--- /dev/null
+++ b/gtest/.gitignore
@@ -0,0 +1,18 @@
+# ---> ArchLinuxPackages
+*.tar
+*.tar.*
+*.jar
+*.exe
+*.msi
+*.zip
+*.tgz
+*.log
+*.log.*
+*.sig
+
+pkg/
+src/
+
+*.service
+*.timer
+*.socket
diff --git a/gtest/.nvchecker.toml b/gtest/.nvchecker.toml
new file mode 100644
index 0000000..2bc4990
--- /dev/null
+++ b/gtest/.nvchecker.toml
@@ -0,0 +1,4 @@
+[gtest]
+source = "git"
+git = "https://github.com/google/googletest.git"
+prefix = "v"
diff --git a/gtest/PKGBUILD b/gtest/PKGBUILD
new file mode 100644
index 0000000..fc5a2b6
--- /dev/null
+++ b/gtest/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Cory Sanin <corysanin@artixlinux.org>
+# Contributor: Carl Smedstad <carsme@archlinux.org>
+# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+# Contributor: Alexandre Bique <bique.alexandre@gmail.com>
+# Contributor: Louis R. Marascio <lrm@fitnr.com>
+# Contributor: Cody Maloney <cmaloney@theoreticalchaos.com>
+# Contributor: acxz <akashpatel2008 at yahoo dot com>
+
+pkgname=gtest
+pkgver=1.17.0
+pkgrel=1
+pkgdesc='Google Test - C++ testing utility'
+url='https://github.com/google/googletest'
+arch=('x86_64')
+license=('BSD-3-Clause')
+depends=(
+ 'gcc-libs'
+ 'glibc'
+)
+makedepends=(
+ 'cmake'
+ 'python'
+)
+optdepends=('python: gmock generator')
+conflicts=('gmock')
+replaces=('gmock')
+provides=(
+ 'gmock'
+ 'libgmock.so'
+ 'libgmock_main.so'
+ 'libgtest.so'
+ 'libgtest_main.so'
+)
+_srcname=googletest-${pkgver}
+source=("${_srcname}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha512sums=('0f57e9ef06925e5b7722df1eb92ef5850e8dce79220ea16a8aaff586a71c0b01460ef1713649ee24ffedb2e6ad5a51e9198c5a5ae1b2789e43feb1f494e7d45c')
+
+build() {
+ cmake -H${_srcname} -Bbuild \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -Wno-dev \
+ -DBUILD_SHARED_LIBS=ON \
+ -Dgtest_build_tests=ON \
+ -DGOOGLETEST_VERSION=$pkgver
+ cmake --build build
+}
+
+package() {
+ DESTDIR="${pkgdir}" cmake --install build
+
+ cd ${_srcname}
+ install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -vDm 644 README.md CONTRIBUTORS -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/gtest/README.md b/gtest/README.md
new file mode 100644
index 0000000..1ea8994
--- /dev/null
+++ b/gtest/README.md
@@ -0,0 +1,2 @@
+# gtest
+
diff --git a/gtest/gtest-version.patch b/gtest/gtest-version.patch
new file mode 100644
index 0000000..ceff755
--- /dev/null
+++ b/gtest/gtest-version.patch
@@ -0,0 +1,22 @@
+diff --unified --recursive --text googletest-release-1.11.0.orig/googlemock/CMakeLists.txt googletest-release-1.11.0/googlemock/CMakeLists.txt
+--- googletest-release-1.11.0.orig/googlemock/CMakeLists.txt 2020-11-13 14:33:36.022632459 -0500
++++ googletest-release-1.11.0/googlemock/CMakeLists.txt 2020-11-13 14:35:01.806861990 -0500
+@@ -40,6 +40,7 @@
+ # ${gmock_BINARY_DIR}.
+ # Language "C" is required for find_package(Threads).
+ cmake_minimum_required(VERSION 3.13)
++ set(GOOGLETEST_VERSION __GOOGLETEST_VERSION__)
+ project(gmock VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
+
+ if (COMMAND set_up_hermetic_build)
+diff --unified --recursive --text googletest-release-1.11.0.orig/googletest/CMakeLists.txt googletest-release-1.11.0/googletest/CMakeLists.txt
+--- googletest-release-1.11.0.orig/googletest/CMakeLists.txt 2020-11-13 14:33:36.039299268 -0500
++++ googletest-release-1.11.0/googletest/CMakeLists.txt 2020-11-13 14:37:10.274915300 -0500
+@@ -46,6 +46,7 @@
+ # Project version:
+
+ cmake_minimum_required(VERSION 3.13)
++set(GOOGLETEST_VERSION __GOOGLETEST_VERSION__)
+ project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
+
+ if (POLICY CMP0063) # Visibility