wok-current view bc/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (6 weeks ago)
parents 9af0e03b8ad0
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 HOST_ARCH="i486 x86_64"
17 DEPENDS="flex ncurses readline"
18 BUILD_DEPENDS="ed flex readline-dev texinfo"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --with-readline \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_files bc dc
41 }