summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-02-05 18:59:26 +0000
committerZach van Rijn <me@zv.io>2022-06-12 23:51:30 +0000
commit0cba3987db9e098d540f6686b446af35885a2a5d (patch)
tree208a4ddbfce1bc9b3e10d2bc932fd4d67d7b6597 /user
parenta37fdebffda16fce3b2cc2fdf47f07490acecca5 (diff)
downloadpackages-0cba3987db9e098d540f6686b446af35885a2a5d.tar.gz
packages-0cba3987db9e098d540f6686b446af35885a2a5d.tar.bz2
packages-0cba3987db9e098d540f6686b446af35885a2a5d.tar.xz
packages-0cba3987db9e098d540f6686b446af35885a2a5d.zip
user/gtest: install gmock. fixes #500.
Diffstat (limited to 'user')
-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"