wok-current annotate units/receipt @ rev 25035
Up libqcow (20210419)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 20 18:11:13 2022 +0000 (2022-05-20) |
parents | 52c26a2da959 |
children | d10c7dd2954f |
rev | line source |
---|---|
paul@4538 | 1 # SliTaz package receipt. |
paul@4538 | 2 |
paul@4538 | 3 PACKAGE="units" |
Hans-G?nter@22078 | 4 VERSION="2.19" |
paul@4538 | 5 CATEGORY="utilities" |
paul@4538 | 6 SHORT_DESC="Units converter." |
paul@4538 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15201 | 8 LICENSE="GPL3" |
Hans-G?nter@22078 | 9 WEB_SITE="https://www.gnu.org/software/units/" |
Hans-G?nter@22078 | 10 |
paul@4538 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22078 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
paul@4538 | 13 |
Hans-G?nter@22078 | 14 SUGGESTED="python" # to run units_cur |
Hans-G?nter@22078 | 15 DEPENDS="ncurses readline" |
Hans-G?nter@22078 | 16 BUILD_DEPENDS="ncurses-dev readline-dev" |
slaxemulator@10308 | 17 |
pascal@24336 | 18 # What is the latest version available today? |
pascal@24336 | 19 current_version() |
pascal@24336 | 20 { |
pascal@24336 | 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 23 } |
pascal@24336 | 24 |
paul@4538 | 25 # Rules to configure and make the package. |
paul@4538 | 26 compile_rules() |
paul@4538 | 27 { |
slaxemulator@10308 | 28 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@22078 | 29 make && |
Hans-G?nter@22078 | 30 make -j1 DESTDIR=$DESTDIR install |
paul@4538 | 31 } |
paul@4538 | 32 |
paul@4538 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@4538 | 34 genpkg_rules() |
paul@4538 | 35 { |
paul@4538 | 36 mkdir -p $fs/usr/share |
Hans-G?nter@22078 | 37 |
Hans-G?nter@22078 | 38 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22078 | 39 cp -a $install/usr/share/units $fs/usr/share |
paul@4538 | 40 } |