wok annotate gtest/receipt @ rev 24072

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 17:56:16 2021 +0000 (2021-07-07)
parents 6a74e77788e6
children ac8ca9758df1
rev   line source
pascal@18161 1 # SliTaz package receipt.
pascal@18161 2
pascal@18161 3 PACKAGE="gtest"
Hans-G?nter@22891 4 VERSION="1.10.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@24055 20 sed '/release.*tar/!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@22891 29 mkdir build &&
Hans-G?nter@22891 30 cd build &&
pascal@18161 31 cmake -DCMAKE_INSTALL_PREFIX=/usr ..
pascal@18161 32 make
pascal@18161 33 }
pascal@18161 34
pascal@18161 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18161 36 genpkg_rules()
pascal@18161 37 {
pascal@18161 38 mkdir -p $fs/usr/lib
Hans-G?nter@22891 39
Hans-G?nter@22891 40 cp -a $src/googletest/include $fs/usr
Hans-G?nter@22891 41 cp -a $src/build/lib/*a $fs/usr/lib
pascal@18161 42 }