wok-6.x view gtest/receipt @ rev 24092
Up get-pcem-roms (2.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 18 13:15:53 2021 +0000 (2021-07-18) |
parents | 6a74e77788e6 |
children | ac8ca9758df1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtest"
4 VERSION="1.10.0"
5 CATEGORY="development"
6 SHORT_DESC="Google's framework for writing C++ tests."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="other"
9 WEB_SITE="https://github.com/google/googletest/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}archive/release-$VERSION.tar.gz"
14 DEPENDS="gcc83-lib-base"
15 BUILD_DEPENDS="cmake gcc83"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/release.*tar/!d;s|.*/release-\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 export CC=gcc-83
27 export CXX=g++-83
29 mkdir build &&
30 cd build &&
31 cmake -DCMAKE_INSTALL_PREFIX=/usr ..
32 make
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
40 cp -a $src/googletest/include $fs/usr
41 cp -a $src/build/lib/*a $fs/usr/lib
42 }