blob: 1d2b371a64a4b3fc87fa11b8b81de96befd910f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gtest
pkgver=1.8.0
pkgrel=0
pkgdesc="Google Test - C++ testing utility based on the xUnit framework (like JUnit)"
url="https://github.com/google/googletest"
arch="all"
license="BSD"
depends="libgcc bash"
depends_dev="python2 cmake"
makedepends="$depends_dev"
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
}
build() {
cd "$_builddir"
rm -rf build
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON \
-DCMAKE_SKIP_RPATH=ON ../ || return 1
make || return 1
}
package() {
cd "$_builddir"
for dir in usr/lib usr/include/gtest/internal 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/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/ \
|| return 1
}
md5sums="16877098823401d1bf2ed7891d7dce36 release-1.8.0.tar.gz"
sha256sums="58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8 release-1.8.0.tar.gz"
sha512sums="1dbece324473e53a83a60601b02c92c089f5d314761351974e097b2cf4d24af4296f9eb8653b6b03b1e363d9c5f793897acae1f0c7ac40149216035c4d395d9d release-1.8.0.tar.gz"
|