wok-current annotate minised/receipt @ rev 24453
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 15 18:29:48 2022 +0000 (2022-02-15) |
parents | 526643e4fb00 |
children | 4cc045d1c2be |
rev | line source |
---|---|
pascal@15718 | 1 # SliTaz package receipt. |
pascal@15718 | 2 |
pascal@15718 | 3 PACKAGE="minised" |
Hans-G?nter@21444 | 4 VERSION="1.15" |
pascal@15718 | 5 CATEGORY="base-system" |
pascal@15718 | 6 SHORT_DESC="A smaller, cheaper, faster SED implementation." |
pascal@15718 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15718 | 8 LICENSE="BSD" |
Hans-G?nter@21444 | 9 WEB_SITE="httpa://www.exactcode.com/opensource/minised/" |
Hans-G?nter@21444 | 10 |
pascal@15718 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15718 | 12 WGET_URL="http://dl.exactcode.de/oss/$PACKAGE/$TARBALL" |
pascal@15718 | 13 |
pascal@15718 | 14 DEPENDS="" |
pascal@15718 | 15 BUILD_DEPENDS="" |
pascal@15718 | 16 |
pascal@24453 | 17 # What is the latest version available today? |
pascal@24453 | 18 current_version() |
pascal@24453 | 19 { |
pascal@24453 | 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 22 } |
pascal@24453 | 23 |
pascal@15718 | 24 # Rules to configure and make the package. |
pascal@15718 | 25 compile_rules() |
pascal@15718 | 26 { |
pascal@15718 | 27 make && |
pascal@15718 | 28 make DESTDIR=$DESTDIR install |
pascal@15718 | 29 } |
pascal@15718 | 30 |
pascal@15718 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15718 | 32 genpkg_rules() |
pascal@15718 | 33 { |
pascal@15718 | 34 mkdir -p $fs/usr |
pascal@15718 | 35 cp -a $install/usr/bin $fs/usr |
pascal@15718 | 36 } |