wok-6.x annotate lha/receipt @ rev 24447
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 17:51:14 2022 +0000 (2022-02-14) |
parents | 6c3718ca17b6 |
children |
rev | line source |
---|---|
pascal@2645 | 1 # SliTaz package receipt. |
pascal@2645 | 2 |
pascal@2645 | 3 PACKAGE="lha" |
pascal@2645 | 4 VERSION="1.14i-ac20050924p1" |
pascal@2645 | 5 CATEGORY="system-tools" |
pascal@2645 | 6 SHORT_DESC="File archiver." |
pascal@2645 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15472 | 8 LICENSE="CC-SA" |
pascal@2645 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@2645 | 10 WEB_SITE="http://$PACKAGE.sourceforge.jp/" |
pascal@2645 | 11 WGET_URL="http://osdn.dl.sourceforge.jp/$PACKAGE/22231/$TARBALL" |
pascal@2645 | 12 |
pascal@24447 | 13 # What is the latest version available today? |
pascal@24447 | 14 current_version() |
pascal@24447 | 15 { |
pascal@24447 | 16 wget -O - https://github.com/jca02266/lha/tags 2>/dev/null | \ |
pascal@24447 | 17 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q' |
pascal@24447 | 18 } |
pascal@24447 | 19 |
pascal@2645 | 20 # Rules to configure and make the package. |
pascal@2645 | 21 compile_rules() |
pascal@2645 | 22 { |
pascal@2645 | 23 cd $src |
pascal@2645 | 24 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@2645 | 25 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@2645 | 26 make && |
pascal@15472 | 27 make DESTDIR=$DESTDIR install |
pascal@2645 | 28 } |
pascal@2645 | 29 |
pascal@2645 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2645 | 31 genpkg_rules() |
pascal@2645 | 32 { |
pascal@2645 | 33 mkdir -p $fs/usr |
pascal@15472 | 34 cp -a $install/usr/bin $fs/usr |
pascal@2645 | 35 } |
pascal@2645 | 36 |