wok-current view cocoalib/receipt @ rev 25477
icedtea6-jdk: find output to variable
author | Hans-G?nter Theisgen |
---|---|
date | Thu Oct 13 17:53:47 2022 +0100 (2022-10-13) |
parents | fff755dd0f58 |
children |
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://web.archive.org/web/20220622092428/https://cocoa.dima.unige.it/cocoa/cocoalib/"
11 TARBALL="CoCoALib-$VERSION.tgz"
12 WGET_URL="https://web.archive.org/web/20220621195548if_/https://cocoa.dima.unige.it/cocoa/cocoalib/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 }