wok annotate libidn/receipt @ rev 24385
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 07 11:38:23 2022 +0000 (2022-02-07) |
parents | bd3e2cbc0ec4 |
children | 47332d4af699 |
rev | line source |
---|---|
pascal@2133 | 1 # SliTaz package receipt. |
pascal@2133 | 2 |
pascal@2133 | 3 PACKAGE="libidn" |
Hans-G?nter@21239 | 4 VERSION="1.35" |
pascal@2133 | 5 CATEGORY="system-tools" |
pascal@2133 | 6 SHORT_DESC="Encode and decode internationalized domain names." |
pascal@2133 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15227 | 8 LICENSE="GPL3 LGPL2.1" |
Hans-G?nter@21239 | 9 WEB_SITE="https://www.gnu.org/software/$PACKAGE/" |
Hans-G?nter@21239 | 10 |
pascal@2133 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@2133 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
Hans-G?nter@21239 | 13 |
pankso@15963 | 14 HOST_ARCH="i486 arm" |
pascal@2133 | 15 |
pascal@24072 | 16 current_version() |
pascal@24072 | 17 { |
pascal@24072 | 18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 19 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 20 } |
pascal@24072 | 21 |
pascal@2133 | 22 # Rules to configure and make the package. |
pascal@2133 | 23 compile_rules() |
pascal@2133 | 24 { |
slaxemulator@10155 | 25 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@21239 | 26 make $MAKEFLAGS -j 1 && |
pascal@15227 | 27 make install |
pascal@2133 | 28 } |
pascal@2133 | 29 |
pascal@2133 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2133 | 31 genpkg_rules() |
pascal@2133 | 32 { |
pascal@2133 | 33 mkdir -p $fs/usr/lib |
Hans-G?nter@21239 | 34 |
Hans-G?nter@21239 | 35 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21239 | 36 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@2133 | 37 } |