wok-current annotate eigen/receipt @ rev 24439

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 13 18:01:32 2022 +0000 (2022-02-13)
parents 5a370aced713
children ff9ccba72fd2
rev   line source
pascal@17321 1 # SliTaz package receipt.
pascal@17321 2
pascal@17321 3 PACKAGE="eigen"
Hans-G?nter@20871 4 VERSION="3.3.7"
pascal@17321 5 CATEGORY="development"
pascal@17321 6 SHORT_DESC="A C++ template library for linear algebra."
pascal@17321 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17321 8 LICENSE="MPL2 LGPL BSD"
Hans-G?nter@20871 9 WEB_SITE="http://eigen.tuxfamily.org/"
Hans-G?nter@20871 10
pascal@17321 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@17321 12 WGET_URL="https://bitbucket.org/$PACKAGE/$PACKAGE/get/$VERSION.tar.bz2"
pascal@17321 13
pascal@17321 14 DEPENDS=""
Hans-G?nter@20871 15 BUILD_DEPENDS="cmake pkg-config glib"
pascal@17321 16
pascal@24439 17 # What is the latest version available today?
pascal@24439 18 current_version()
pascal@24439 19 {
pascal@24439 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24439 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
pascal@24439 22 }
pascal@24439 23
pascal@17321 24 # Rules to configure and make the package.
pascal@17321 25 #
pascal@17321 26 compile_rules()
pascal@17321 27 {
pascal@17321 28 mkdir built
pascal@17321 29 cd built
pascal@17321 30 cmake -DCMAKE_INSTALL_PREFIX=/usr ../
Hans-G?nter@20871 31 make -j 1 &&
pascal@17321 32 make DESTDIR=$DESTDIR install
pascal@17321 33 }
pascal@17321 34
pascal@17321 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17321 36 genpkg_rules()
pascal@17321 37 {
pascal@17321 38 cp -a $install/* $fs
pascal@17321 39 }