diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-08 22:45:22 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-08 22:45:22 -0500 |
commit | 39934dd75e23833fbf22de1d88e46f5dc21f3075 (patch) | |
tree | 41caaa630ca8a4aed3249c2175cf6990ef9e7fe1 /user/gtest | |
parent | 6aa71e26f4168980e45e24c390c27356a959bdac (diff) | |
download | packages-39934dd75e23833fbf22de1d88e46f5dc21f3075.tar.gz packages-39934dd75e23833fbf22de1d88e46f5dc21f3075.tar.bz2 packages-39934dd75e23833fbf22de1d88e46f5dc21f3075.tar.xz packages-39934dd75e23833fbf22de1d88e46f5dc21f3075.zip |
user/gtest: pull in, fix
Diffstat (limited to 'user/gtest')
-rw-r--r-- | user/gtest/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/user/gtest/APKBUILD b/user/gtest/APKBUILD new file mode 100644 index 000000000..048c014a4 --- /dev/null +++ b/user/gtest/APKBUILD @@ -0,0 +1,46 @@ +# Maintainer: +pkgname=gtest +pkgver=1.8.0 +pkgrel=3 +pkgdesc="C++ testing framework based on xUnit (like JUnit)" +url="https://github.com/google/googletest" +arch="all" +options="!check" # No test suite. +license="BSD-3-Clause" +depends="libgcc bash" +depends_dev="python3 cmake" +makedepends="$depends_dev" +subpackages="$pkgname-dev $pkgname-doc" +source="https://github.com/google/googletest/archive/release-$pkgver.tar.gz" +builddir="$srcdir"/googletest-release-${pkgver} + +build() { + cd "$builddir" + rm -rf build + mkdir build + cd build + + cmake -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_SKIP_RPATH=ON ../ + make +} + +package() { + cd "$builddir" + 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/googlemock/gtest/libgtest*.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/ +} + +sha512sums="1dbece324473e53a83a60601b02c92c089f5d314761351974e097b2cf4d24af4296f9eb8653b6b03b1e363d9c5f793897acae1f0c7ac40149216035c4d395d9d release-1.8.0.tar.gz" |