wok-6.x annotate enet/receipt @ rev 24427
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 11:42:56 2022 +0000 (2022-02-12) |
parents | d00daa25e4a8 |
children | 4a3297adbb3f |
rev | line source |
---|---|
pascal@11221 | 1 # SliTaz package receipt. |
pascal@11221 | 2 |
pascal@11221 | 3 PACKAGE="enet" |
Hans-G?nter@20887 | 4 VERSION="1.3.14" |
pascal@11221 | 5 CATEGORY="development" |
Hans-G?nter@20887 | 6 SHORT_DESC="A relatively thin, simple and robust network communication layer on top of UDP" |
pascal@11221 | 7 MAINTAINER="devl547@gmail.com" |
pascal@15588 | 8 LICENSE="MIT" |
Hans-G?nter@20887 | 9 WEB_SITE="http://enet.bespin.org/" |
Hans-G?nter@20887 | 10 |
pascal@11221 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@11221 | 12 WGET_URL="$WEB_SITE/download/$TARBALL" |
pascal@11221 | 13 |
pascal@24427 | 14 # What is the latest version available today? |
pascal@24427 | 15 current_version() |
pascal@24427 | 16 { |
pascal@24427 | 17 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24427 | 18 sed '/projectnumber/!d;s|.*>v||;s|<.*||' |
pascal@24427 | 19 } |
pascal@24427 | 20 |
pascal@11221 | 21 # Rules to configure and make the package. |
pascal@11221 | 22 compile_rules() |
pascal@11221 | 23 { |
Hans-G?nter@20887 | 24 ./configure \ |
Hans-G?nter@20887 | 25 --prefix=/usr \ |
Hans-G?nter@20887 | 26 --infodir=/usr/share/info \ |
Hans-G?nter@20887 | 27 --mandir=/usr/share/man \ |
Hans-G?nter@20887 | 28 --enable-crc32 \ |
Hans-G?nter@20887 | 29 $CONFIGURE_ARGS && |
Hans-G?nter@20887 | 30 make -j 1 && |
pascal@15588 | 31 make DESTDIR=$DESTDIR install |
pascal@11221 | 32 } |
pascal@11221 | 33 |
pascal@11221 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11221 | 35 genpkg_rules() |
pascal@11221 | 36 { |
pascal@11221 | 37 mkdir -p $fs/usr/lib |
pascal@15588 | 38 cp -a $install/usr/lib/*a $fs/usr/lib |
pascal@15588 | 39 cp -a $install/usr/include $fs/usr |
pascal@11221 | 40 } |