wok annotate enet/receipt @ rev 25601
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 16 18:06:38 2023 +0000 (18 months ago) |
parents | 2b069c72d47e |
children | 5db546345599 |
rev | line source |
---|---|
pascal@11221 | 1 # SliTaz package receipt. |
pascal@11221 | 2 |
pascal@11221 | 3 PACKAGE="enet" |
Hans-G?nter@24516 | 4 VERSION="1.3.17" |
pascal@11221 | 5 CATEGORY="development" |
Hans-G?nter@24516 | 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" |
pascal@25580 | 9 WEB_SITE="https://github.com/lsalzman/enet/" |
Hans-G?nter@20887 | 10 |
pascal@11221 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@25591 | 12 WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz" |
pascal@25591 | 13 |
pascal@25591 | 14 BUILD_DEPENDS="automake" |
pascal@11221 | 15 |
pascal@24427 | 16 # What is the latest version available today? |
pascal@24427 | 17 current_version() |
pascal@24427 | 18 { |
pascal@24427 | 19 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24427 | 20 sed '/projectnumber/!d;s|.*>v||;s|<.*||' |
pascal@24427 | 21 } |
pascal@24427 | 22 |
pascal@11221 | 23 # Rules to configure and make the package. |
pascal@11221 | 24 compile_rules() |
pascal@11221 | 25 { |
pascal@25591 | 26 autoreconf -vfi |
Hans-G?nter@24516 | 27 ./configure \ |
Hans-G?nter@24516 | 28 --prefix=/usr \ |
Hans-G?nter@24516 | 29 --infodir=/usr/share/info \ |
Hans-G?nter@24516 | 30 --mandir=/usr/share/man \ |
Hans-G?nter@24516 | 31 --enable-crc32 \ |
Hans-G?nter@20887 | 32 $CONFIGURE_ARGS && |
Hans-G?nter@24516 | 33 make && |
Hans-G?nter@24516 | 34 make install DESTDIR=$DESTDIR |
pascal@11221 | 35 } |
pascal@11221 | 36 |
pascal@11221 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11221 | 38 genpkg_rules() |
pascal@11221 | 39 { |
Hans-G?nter@24516 | 40 # mkdir -p $fs/usr/lib |
Hans-G?nter@24516 | 41 |
Hans-G?nter@24516 | 42 # cp -a $install/usr/lib/*a $fs/usr/lib |
Hans-G?nter@24516 | 43 # cp -a $install/usr/include $fs/usr |
Hans-G?nter@24516 | 44 cook_copy_folders include |
Hans-G?nter@24516 | 45 cook_copy_folders pkgconfig |
Hans-G?nter@24516 | 46 cook_copy_files *.*a |
Hans-G?nter@24516 | 47 # what about *.so* ? |
Hans-G?nter@24516 | 48 # this looks rather like a package enet-dev ! |
pascal@11221 | 49 } |