wok-6.x annotate rlwrap/receipt @ rev 24308
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 18:18:17 2022 +0000 (2022-01-17) |
parents | 64d9f0db2734 |
children | e1e1678c5265 |
rev | line source |
---|---|
pascal@11214 | 1 # SliTaz package receipt. |
pascal@11214 | 2 |
pascal@11214 | 3 PACKAGE="rlwrap" |
Hans-G?nter@21843 | 4 VERSION="0.43" |
pascal@11214 | 5 CATEGORY="misc" |
pascal@11214 | 6 SHORT_DESC="Input history wrapper using GNU readline." |
pascal@11214 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15593 | 8 LICENSE="GPL2" |
pascal@24308 | 9 WEB_SITE="https://github.com/hanslub42/rlwrap" |
Hans-G?nter@21843 | 10 |
pascal@11214 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21843 | 12 WGET_URL="${WEB_SITE}archive/v$VERSION/$TARBALL" |
pascal@11214 | 13 |
Hans-G?nter@21843 | 14 BUILD_DEPENDS="automake ncurses-dev readline-dev" |
pascal@11214 | 15 |
pascal@24308 | 16 # What is the latest version available today? |
pascal@24308 | 17 current_version() |
pascal@24308 | 18 { |
pascal@24308 | 19 wget -O - $WEB_SITE/releases 2>/dev/null | \ |
pascal@24308 | 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 21 } |
pascal@24308 | 22 |
pascal@11214 | 23 # Rules to configure and make the package. |
pascal@11214 | 24 compile_rules() |
pascal@11214 | 25 { |
pascal@17673 | 26 export LDFLAGS="$LDFLAGS -ltinfo" |
Hans-G?nter@21843 | 27 |
Hans-G?nter@21843 | 28 autoreconf --install && |
Hans-G?nter@21843 | 29 ./configure \ |
Hans-G?nter@21843 | 30 --prefix=/usr \ |
Hans-G?nter@21843 | 31 --localstatedir=/var \ |
pascal@17673 | 32 $CONFIGURE_ARGS && |
Hans-G?nter@21843 | 33 make && |
Hans-G?nter@21843 | 34 make DESTDIR=$DESTDIR install |
pascal@11214 | 35 } |
pascal@11214 | 36 |
pascal@11214 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11214 | 38 genpkg_rules() |
pascal@11214 | 39 { |
pascal@11214 | 40 mkdir -p $fs/usr/share |
Hans-G?nter@21843 | 41 |
Hans-G?nter@21843 | 42 cp -a $install/usr/share/rlwrap $fs/usr/share |
Hans-G?nter@21843 | 43 cp -a $install/usr/bin $fs/usr |
pascal@11214 | 44 } |