diff options
author | Zach van Rijn <me@zv.io> | 2022-02-05 18:59:26 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-10-21 18:33:57 -0500 |
commit | cdcbc714c69b57d1b25e82965eb1c4056f63a350 (patch) | |
tree | 87b8881c13eea6c3d932560c0e0cda831dc51da3 /user | |
parent | c57de6d09b80cd1e4c0fa0c70c92d661f3ebbe1e (diff) | |
download | packages-cdcbc714c69b57d1b25e82965eb1c4056f63a350.tar.gz packages-cdcbc714c69b57d1b25e82965eb1c4056f63a350.tar.bz2 packages-cdcbc714c69b57d1b25e82965eb1c4056f63a350.tar.xz packages-cdcbc714c69b57d1b25e82965eb1c4056f63a350.zip |
user/gtest: install gmock. fixes #500.
Diffstat (limited to 'user')
-rw-r--r-- | user/gtest/APKBUILD | 32 |
1 files 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 <me@zv.io> 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" |