wok view units/receipt @ rev 25710

typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 25 12:42:06 2024 +0000 (4 months ago)
parents 82316779b3fb
children
line source
1 # SliTaz package receipt.
3 PACKAGE="units"
4 VERSION="2.21"
5 CATEGORY="utilities"
6 SHORT_DESC="Units converter."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/units/"
10 REPOLOGY="gnu:units"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 SUGGESTED="python" # to run units_cur
16 DEPENDS="ncurses readline"
17 BUILD_DEPENDS="ncurses-dev readline-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://ftp.gnu.org/gnu/$PACKAGE/ 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure $CONFIGURE_ARGS &&
30 make &&
31 make install DESTDIR=$DESTDIR
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/com
38 mkdir -p $fs/usr/share
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/com/units $fs/usr/com
42 cp -a $install/usr/share/units $fs/usr/share
43 }