wok view units/receipt @ rev 25214
updated python-pastedeploy (2.1.0 -> 2.1.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 15:21:10 2022 +0100 (2022-07-13) |
parents | 52c26a2da959 |
children | d10c7dd2954f |
line source
1 # SliTaz package receipt.
3 PACKAGE="units"
4 VERSION="2.19"
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 SUGGESTED="python" # to run units_cur
15 DEPENDS="ncurses readline"
16 BUILD_DEPENDS="ncurses-dev readline-dev"
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 $CONFIGURE_ARGS &&
29 make &&
30 make -j1 DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/share/units $fs/usr/share
40 }