wok-current view cocoalib/receipt @ rev 24548

created recipe for firefox-official-pl
author Hans-G?nter Theisgen
date Fri Feb 25 07:47:13 2022 +0100 (2022-02-25)
parents 0e6c15b6b327
children fff755dd0f58
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="http://cocoa.dima.unige.it/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 }