wok annotate muparser/receipt @ rev 25603
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 18 11:43:32 2023 +0000 (14 months ago) |
parents | 14a442b5fdf0 |
children |
rev | line source |
---|---|
devl547@13977 | 1 # SliTaz package receipt. |
devl547@13977 | 2 |
devl547@13977 | 3 PACKAGE="muparser" |
Hans-G?nter@24933 | 4 VERSION="2.3.3" |
devl547@13977 | 5 CATEGORY="development" |
Hans-G?nter@21499 | 6 SHORT_DESC="A fast mathematical expression parser library." |
devl547@13977 | 7 MAINTAINER="devl547@gmail.com" |
pascal@15601 | 8 LICENSE="MIT" |
pascal@23890 | 9 WEB_SITE="https://beltoforion.de/en/muparser" |
Hans-G?nter@21499 | 10 |
Hans-G?nter@21499 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24933 | 12 WGET_URL="https://github.com/beltoforion/$PACKAGE/archive/v$VERSION-1.tar.gz" |
pascal@15601 | 13 |
Hans-G?nter@24933 | 14 DEPENDS="gcc83-lib-base" |
Hans-G?nter@24933 | 15 BUILD_DEPENDS="cmake gcc83" |
pascal@15601 | 16 |
pascal@25603 | 17 # What is the latest version available today? |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25603 | 21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;s|-|.|g;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
devl547@13977 | 24 # Rules to configure and make the package. |
devl547@13977 | 25 compile_rules() |
devl547@13977 | 26 { |
Hans-G?nter@21499 | 27 export CC=gcc-83 |
Hans-G?nter@21499 | 28 export CXX=g++-83 |
Hans-G?nter@21499 | 29 |
Hans-G?nter@24933 | 30 mkdir _build && |
Hans-G?nter@24933 | 31 cd _build && |
Hans-G?nter@24933 | 32 cmake .. \ |
Hans-G?nter@24933 | 33 -D ENABLE_OPENMP=OFF \ |
Hans-G?nter@24933 | 34 -D ENABLE_SAMPLES=OFF \ |
Hans-G?nter@24933 | 35 -D CMAKE_INSTALL_PREFIX=/usr && |
Hans-G?nter@21499 | 36 make $MAKEFLAGS && |
Hans-G?nter@24933 | 37 make install DESTDIR=$DESTDIR |
devl547@13977 | 38 } |
devl547@13977 | 39 |
devl547@13977 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@13977 | 41 genpkg_rules() |
devl547@13977 | 42 { |
Hans-G?nter@24933 | 43 cook_copy_folders lib |
devl547@13977 | 44 } |