wok view cocoalib/receipt @ rev 24974

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 02 11:23:24 2022 +0000 (2022-05-02)
parents ad8b9ff412d2
children 7a500035d756
line source
1 # SliTaz package receipt.
3 PACKAGE="cocoalib"
4 VERSION="0.99650"
5 CATEGORY="misc"
6 SHORT_DESC="C++ library for computations in commutative algebra"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://cocoa.dima.unige.it/cocoa/cocoalib/"
11 TARBALL="CoCoALib-$VERSION.tgz"
12 WGET_URL="${WEB_SITE}tgz/$TARBALL"
14 DEPENDS="gcc83-lib-base gmp gsl libboost-filesystem libboost-iostreams
15 libboost-system libboost-thread libboost-tr1"
16 BUILD_DEPENDS="bash gcc83 gmp-dev gsl-dev libboost-filesystem-dev
17 libboost-iostreams-dev libboost-system-dev libboost-thread-dev
18 libboost-tr1-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WEB_SITE 2>/dev/null | \
24 sed "/latest/d;/CoCoALib-[0-9]/!d;/tgz/!d;s|.*CoCoALib-\\(.*\\).tgz.*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # find | grep Makefile | sed 's/Makefile.*/Makefile_dependencies/' | \
31 # xargs touch -d 197001010000
33 export CC=gcc-83 # rejected as configure parameter
34 export CXX=g++-83
36 ./configure &&
37 make library
38 # INSTALL TARGET for CoCoALib NOT YET IMPLEMENTED
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
45 mkdir -p $fs/usr/include
46 cp -a $src/lib/libcocoa.a /$fs/usr/lib
47 cp -a $src/include/* $fs/usr/include
48 }