wok annotate bullet/receipt @ rev 24336

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 28 18:19:21 2022 +0000 (2022-01-28)
parents dce0ce87bb59
children 343c093ad221
rev   line source
pascal@15721 1 # SliTaz package receipt.
pascal@15721 2
pascal@15721 3 PACKAGE="bullet"
Hans-G?nter@22571 4 VERSION="2.89"
pascal@15721 5 CATEGORY="graphics"
Hans-G?nter@22571 6 SHORT_DESC="3D Real-Time Multiphysics Library."
pascal@15721 7 MAINTAINER="domcox@slitaz.org"
pascal@15721 8 LICENSE="zlib/libpng"
Hans-G?nter@22571 9 WEB_SITE="https://www.bulletphysics.com/Bullet/"
pascal@15721 10
Hans-G?nter@22571 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22571 12 WGET_URL="https://github.com/bulletphysics/${PACKAGE}3/archive/$VERSION/${PACKAGE}3-$VERSION.tar.gz"
Hans-G?nter@22571 13
Hans-G?nter@22571 14 DEPENDS="freeglut gcc83-lib-base mesa"
Hans-G?nter@22571 15 BUILD_DEPENDS="cmake freeglut-dev gcc83 mesa-dev"
pascal@15721 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 '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@15721 23 # Rules to configure and make the package.
pascal@15721 24 compile_rules()
pascal@15721 25 {
Hans-G?nter@22571 26 export CC=gcc-83
Hans-G?nter@22571 27 export CXX=g++-83
Hans-G?nter@22571 28
Hans-G?nter@22571 29 cd build3 &&
Hans-G?nter@22571 30 cmake .. \
Hans-G?nter@22571 31 -DBUILD_CPU_DEMOS=OFF \
Hans-G?nter@22571 32 -DBUILD_DEMOS=OFF \
Hans-G?nter@22571 33 -DBUILD_SHARED_LIBS=ON \
pascal@15721 34 -DCMAKE_INSTALL_PREFIX=/usr &&
pascal@15721 35 make $MAKEFLAGS &&
pascal@15721 36 make install DESTDIR=$install
pascal@15721 37 }
pascal@15721 38
pascal@15721 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15721 40 genpkg_rules()
pascal@15721 41 {
pascal@15721 42 mkdir -p $fs/usr/lib
Hans-G?nter@22571 43 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15721 44 }