aboutsummaryrefslogtreecommitdiffstats
path: root/main/gtest/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/gtest/APKBUILD')
-rw-r--r--main/gtest/APKBUILD24
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/ \