summaryrefslogtreecommitdiff
path: root/user/gtest
diff options
context:
space:
mode:
Diffstat (limited to 'user/gtest')
-rw-r--r--user/gtest/APKBUILD32
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"