wok annotate libestr/receipt @ rev 24535
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 11:49:52 2022 +0000 (2022-02-23) |
parents | 2ef718547108 |
children | e1e1678c5265 |
rev | line source |
---|---|
erjo@11415 | 1 # SliTaz package receipt. |
erjo@11415 | 2 |
erjo@11415 | 3 PACKAGE="libestr" |
Hans-G?nter@21173 | 4 VERSION="0.1.11" |
erjo@11415 | 5 CATEGORY="system-tools" |
Hans-G?nter@21173 | 6 SHORT_DESC="Some essentials for string handling." |
erjo@11415 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15472 | 8 LICENSE="LGPL2" |
pascal@21145 | 9 WEB_SITE="https://libestr.adiscon.com/" |
Hans-G?nter@21173 | 10 |
erjo@11415 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@11415 | 12 WGET_URL="http://libestr.adiscon.com/files/download/$TARBALL" |
erjo@11415 | 13 |
pascal@24447 | 14 # What is the latest version available today? |
pascal@24447 | 15 current_version() |
pascal@24447 | 16 { |
pascal@24447 | 17 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24447 | 18 sed "/latest/d;/$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|/.*||;s|-|.|g" | sort -Vr | sed q |
pascal@24447 | 19 } |
pascal@24447 | 20 |
erjo@11415 | 21 # Rules to configure and make the package. |
erjo@11415 | 22 compile_rules() |
erjo@11415 | 23 { |
Hans-G?nter@21173 | 24 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@21173 | 25 make -j 1 && |
Hans-G?nter@21173 | 26 make install |
erjo@11415 | 27 } |
erjo@11415 | 28 |
erjo@11415 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@11415 | 30 genpkg_rules() |
erjo@11415 | 31 { |
erjo@11415 | 32 mkdir -p $fs/usr/lib |
erjo@11415 | 33 cp -a $install/usr/lib/*.so* $fs/usr/lib |
erjo@11415 | 34 } |