wok-6.x annotate gtest/receipt @ rev 25426
updated xalan-c and xalan-c-dev (1.11 -> 1.12.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 18 16:42:41 2022 +0100 (2022-08-18) |
parents | ac8ca9758df1 |
children |
rev | line source |
---|---|
pascal@18161 | 1 # SliTaz package receipt. |
pascal@18161 | 2 |
pascal@18161 | 3 PACKAGE="gtest" |
Hans-G?nter@24631 | 4 VERSION="1.11.0" |
pascal@18161 | 5 CATEGORY="development" |
pascal@18161 | 6 SHORT_DESC="Google's framework for writing C++ tests." |
pascal@18161 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18161 | 8 LICENSE="other" |
Hans-G?nter@22892 | 9 WEB_SITE="https://github.com/google/googletest/" |
pascal@18161 | 10 |
Hans-G?nter@22891 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22891 | 12 WGET_URL="${WEB_SITE}archive/release-$VERSION.tar.gz" |
Hans-G?nter@22891 | 13 |
Hans-G?nter@22891 | 14 DEPENDS="gcc83-lib-base" |
Hans-G?nter@22891 | 15 BUILD_DEPENDS="cmake gcc83" |
pascal@18161 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24299 | 20 sed '/release.*tar.gz/!d;s|.*/release-\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@18161 | 23 # Rules to configure and make the package. |
pascal@18161 | 24 compile_rules() |
pascal@18161 | 25 { |
Hans-G?nter@22891 | 26 export CC=gcc-83 |
Hans-G?nter@22891 | 27 export CXX=g++-83 |
Hans-G?nter@22891 | 28 |
Hans-G?nter@24631 | 29 mkdir _build && |
Hans-G?nter@24631 | 30 cd _build && |
Hans-G?nter@24631 | 31 cmake .. \ |
Hans-G?nter@24631 | 32 -D CMAKE_INSTALL_PREFIX=/usr && |
pascal@18161 | 33 make |
pascal@18161 | 34 } |
pascal@18161 | 35 |
pascal@18161 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18161 | 37 genpkg_rules() |
pascal@18161 | 38 { |
pascal@18161 | 39 mkdir -p $fs/usr/lib |
Hans-G?nter@22891 | 40 |
Hans-G?nter@22891 | 41 cp -a $src/googletest/include $fs/usr |
Hans-G?nter@24631 | 42 cp -a $src/_build/lib/*a $fs/usr/lib |
pascal@18161 | 43 } |