wok view bc/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 07f494afd5e6
children
line source
1 # SliTaz package receipt.
3 PACKAGE="bc"
4 VERSION="1.07.1"
5 CATEGORY="utilities"
6 TAGS="calculator"
7 SHORT_DESC="A commandline calculator."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2 LGPL2.1"
10 WEB_SITE="https://www.gnu.org/software/bc/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://ftp.gnu.org/gnu/$PACKAGE/$TARBALL"
15 DEPENDS="flex ncurses readline"
16 BUILD_DEPENDS="ed flex readline-dev texinfo"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --with-readline \
30 $CONFIGURE_ARGS &&
31 make &&
32 make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cook_copy_files bc dc
39 }