summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordarkprof2019-08-07 00:45:50 +0000
committerdarkprof2019-08-07 00:45:50 +0000
commit5983b4b9b959314e86fdf07bab54b53f076a18a7 (patch)
tree9a3c0bae0503cc1ebda85f70248b8dc5bbaf90fb
downloadaur-5983b4b9b959314e86fdf07bab54b53f076a18a7.tar.gz
start commit
-rw-r--r--.SRCINFO18
-rwxr-xr-xPKGBUILD36
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1972daf3b98
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = lib32-gtest
+ pkgdesc = Google Test - C++ testing utility based on the xUnit framework (like JUnit) (mingw-w64)
+ pkgver = 1.8.1
+ pkgrel = 1
+ url = https://github.com/google/googletest
+ arch = x86_64
+ license = custom:BSD3
+ makedepends = cmake
+ depends = gtest
+ depends = lib32-gcc-libs
+ options = !buildflags
+ options = staticlibs
+ options = !strip
+ source = https://github.com/google/googletest/archive/release-1.8.1.tar.gz
+ sha512sums = e6283c667558e1fd6e49fa96e52af0e415a3c8037afe1d28b7ff1ec4c2ef8f49beb70a9327b7fc77eb4052a58c4ccad8b5260ec90e4bceeac7a46ff59c4369d7
+
+pkgname = lib32-gtest
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..08b732c0e5d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: darkprof <darkprof83@gmail.com>
+
+_pkgname=gtest
+pkgname=lib32-${_pkgname}
+pkgver=1.8.1
+pkgrel=1
+pkgdesc="Google Test - C++ testing utility based on the xUnit framework (like JUnit)"
+arch=('x86_64')
+url="https://github.com/google/googletest"
+license=(custom:BSD3)
+depends=("${_pkgname}" 'lib32-gcc-libs')
+makedepends = cmake
+options=(!buildflags staticlibs !strip)
+source=("https://github.com/google/googletest/archive/release-${pkgver}.tar.gz")
+sha512sums=('e6283c667558e1fd6e49fa96e52af0e415a3c8037afe1d28b7ff1ec4c2ef8f49beb70a9327b7fc77eb4052a58c4ccad8b5260ec90e4bceeac7a46ff59c4369d7')
+
+build() {
+ cd "googletest-release-${pkgver}"
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS=ON \
+ -DCMAKE_SKIP_RPATH=ON \
+ -Dgtest_disable_pthreads=ON \
+ -DCMAKE_CXX_FLAGS=-m32 \
+ -DCMAKE_SHARED_LINKER_FLAGS=-m32 \
+ .
+ cmake --build .
+}
+
+package() {
+ cd "googletest-release-${pkgver}"
+
+ mkdir -pm 0755 "${pkgdir}/usr/lib32"
+ install -m 644 googlemock/libgmock{,_main}.so "${pkgdir}"/usr/lib32
+ install -m 644 googletest/libgtest{,_main}.so "${pkgdir}"/usr/lib32
+}