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