diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-01-16 09:29:45 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-01-17 10:13:50 +0000 |
commit | 548d5f059f840db86343544a7d2c31b34467bc05 (patch) | |
tree | 7ea1b02b089ba4113ace1b1454b88abe31dc48bf /main/gtest | |
parent | 8042937a2f053573e64027bb47a3139228c3ad29 (diff) | |
download | aports-548d5f059f840db86343544a7d2c31b34467bc05.tar.bz2 aports-548d5f059f840db86343544a7d2c31b34467bc05.tar.xz |
main/gtest: added missing dir in -dev package. Fixes #6685
Diffstat (limited to 'main/gtest')
-rw-r--r-- | main/gtest/APKBUILD | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/main/gtest/APKBUILD b/main/gtest/APKBUILD index 1d2b371a64..b7cecb1936 100644 --- a/main/gtest/APKBUILD +++ b/main/gtest/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=gtest pkgver=1.8.0 -pkgrel=0 +pkgrel=1 pkgdesc="Google Test - C++ testing utility based on the xUnit framework (like JUnit)" url="https://github.com/google/googletest" arch="all" @@ -13,19 +13,10 @@ install="" subpackages="$pkgname-dev $pkgname-doc" source="https://github.com/google/googletest/archive/release-$pkgver.tar.gz" -_builddir="$srcdir"/googletest-release-${pkgver} -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir"/googletest-release-${pkgver} build() { - cd "$_builddir" + cd "$builddir" rm -rf build mkdir build cd build @@ -36,20 +27,21 @@ build() { } package() { - cd "$_builddir" - for dir in usr/lib usr/include/gtest/internal usr/share/licenses/gtest\ + 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" || return 1 done install -m 0644 build/googlemock/gtest/libgtest*.so "$pkgdir"/usr/lib || return 1 + install -m 0644 googletest/include/gtest/*.h "$pkgdir"/usr/include/gtest \ || return 1 install -m 0644 googletest/include/gtest/internal/*.h \ "$pkgdir"/usr/include/gtest/internal/ || return 1 + install -m 0644 googletest/include/gtest/internal/custom/*.h \ + "$pkgdir"/usr/include/gtest/internal/custom/ || return 1 install -m 0644 googletest/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/ \ || return 1 - #install -m 0644 "$_builddir/fused-src/gtest"/* \ - # "$pkgdir"/usr/src/gtest/src/ || return 1 install -m 0644 googletest/CMakeLists.txt "$pkgdir"/usr/src/gtest/ \ || return 1 install -m 0644 googletest/cmake/* "$pkgdir"/usr/src/gtest/cmake/ \ |