wok-next diff gtest/receipt @ rev 20778
git update: 2.16.2 (Feb-2018) -> 2.17.1 (May-2018)
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Fri Jun 08 09:36:49 2018 +0000 (2018-06-08) |
parents | 09b238284d9e |
children | 48b896290f12 |
line diff
1.1 --- a/gtest/receipt Tue Jun 23 17:09:47 2015 +0200 1.2 +++ b/gtest/receipt Fri Jun 08 09:36:49 2018 +0000 1.3 @@ -1,29 +1,30 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="gtest" 1.8 -VERSION="1.7.0" 1.9 +VERSION="1.8.0" 1.10 CATEGORY="development" 1.11 -SHORT_DESC="Google's framework for writing C++ tests." 1.12 +SHORT_DESC="Google's framework for writing C++ tests" 1.13 MAINTAINER="pascal.bellard@slitaz.org" 1.14 -LICENSE="other" 1.15 -TARBALL="$PACKAGE-$VERSION.zip" 1.16 -WEB_SITE="http://code.google.com/p/googletest/" 1.17 -WGET_URL="http://googletest.googlecode.com/files/$TARBALL" 1.18 +LICENSE="BSD" 1.19 +WEB_SITE="https://github.com/google/googletest" 1.20 1.21 -BUILD_DEPENDS="cmake" 1.22 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.23 +WGET_URL="https://github.com/google/googletest/archive/release-$VERSION.tar.gz" 1.24 1.25 -# Rules to configure and make the package. 1.26 -compile_rules() 1.27 -{ 1.28 - mkdir build && cd build 1.29 - cmake -DCMAKE_INSTALL_PREFIX=/usr .. 1.30 - make 1.31 +BUILD_DEPENDS="cmake python" 1.32 + 1.33 +compile_rules() { 1.34 + mkdir -p build 1.35 + cd build 1.36 + cmake \ 1.37 + -DCMAKE_INSTALL_PREFIX=/usr \ 1.38 + -DBUILD_SHARED_LIBS=ON \ 1.39 + -DCMAKE_SKIP_RPATH=ON \ 1.40 + .. && 1.41 + make && 1.42 + make install 1.43 } 1.44 1.45 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.46 -genpkg_rules() 1.47 -{ 1.48 - mkdir -p $fs/usr/lib 1.49 - cp -a $src/include $fs/usr 1.50 - cp -a $src/build/*a $fs/usr/lib 1.51 +genpkg_rules() { 1.52 + copy @std @dev 1.53 }