From cdcbc714c69b57d1b25e82965eb1c4056f63a350 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Sat, 5 Feb 2022 18:59:26 +0000 Subject: user/gtest: install gmock. fixes #500. --- user/gtest/APKBUILD | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/user/gtest/APKBUILD b/user/gtest/APKBUILD index 46f396c03..7efd54f75 100644 --- a/user/gtest/APKBUILD +++ b/user/gtest/APKBUILD @@ -1,7 +1,7 @@ -# Maintainer: +# Maintainer: Zach van Rijn pkgname=gtest pkgver=1.10.0 -pkgrel=0 +pkgrel=1 pkgdesc="C++ testing framework based on xUnit (like JUnit)" url="https://github.com/google/googletest" arch="all" @@ -25,20 +25,22 @@ build() { } package() { - for dir in usr/lib usr/include/gtest/internal/custom usr/share/licenses/gtest\ - usr/src/gtest/cmake usr/src/gtest/src; do - install -d -m 0755 "$pkgdir"/"$dir" - done - install -m 0644 build/lib/libgtest*.so "$pkgdir"/usr/lib + for k in mock test; do + for dir in usr/lib usr/include/g${k}/internal/custom usr/share/licenses/g${k}\ + usr/src/g${k}/cmake usr/src/g${k}/src; do + install -d -m 0755 "$pkgdir"/"$dir" + done + install -m 0644 build/lib/libg${k}*.so "$pkgdir"/usr/lib - install -m 0644 googletest/include/gtest/*.h "$pkgdir"/usr/include/gtest - install -m 0644 googletest/include/gtest/internal/*.h \ - "$pkgdir"/usr/include/gtest/internal/ - install -m 0644 googletest/include/gtest/internal/custom/*.h \ - "$pkgdir"/usr/include/gtest/internal/custom/ - install -m 0644 googletest/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/ - install -m 0644 googletest/CMakeLists.txt "$pkgdir"/usr/src/gtest/ - install -m 0644 googletest/cmake/* "$pkgdir"/usr/src/gtest/cmake/ + install -m 0644 google${k}/include/g${k}/*.h "$pkgdir"/usr/include/g${k} + install -m 0644 google${k}/include/g${k}/internal/*.h \ + "$pkgdir"/usr/include/g${k}/internal/ + install -m 0644 google${k}/include/g${k}/internal/custom/*.h \ + "$pkgdir"/usr/include/g${k}/internal/custom/ + install -m 0644 google${k}/LICENSE "$pkgdir"/usr/share/licenses/g${k}/ + install -m 0644 google${k}/CMakeLists.txt "$pkgdir"/usr/src/g${k}/ + install -m 0644 google${k}/cmake/* "$pkgdir"/usr/src/g${k}/cmake/ + done } sha512sums="bd52abe938c3722adc2347afad52ea3a17ecc76730d8d16b065e165bc7477d762bce0997a427131866a89f1001e3f3315198204ffa5d643a9355f1f4d0d7b1a9 release-1.10.0.tar.gz" -- cgit v1.2.3-70-g09d2