wok view enet/receipt @ rev 25591

enet: update wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 22 11:01:59 2023 +0000 (17 months ago)
parents 2b069c72d47e
children 5db546345599
line source
1 # SliTaz package receipt.
3 PACKAGE="enet"
4 VERSION="1.3.17"
5 CATEGORY="development"
6 SHORT_DESC="A relatively thin, simple and robust network communication layer on top of UDP."
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/lsalzman/enet/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz"
14 BUILD_DEPENDS="automake"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/projectnumber/!d;s|.*>v||;s|<.*||'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 autoreconf -vfi
27 ./configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 --enable-crc32 \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install DESTDIR=$DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 # mkdir -p $fs/usr/lib
42 # cp -a $install/usr/lib/*a $fs/usr/lib
43 # cp -a $install/usr/include $fs/usr
44 cook_copy_folders include
45 cook_copy_folders pkgconfig
46 cook_copy_files *.*a
47 # what about *.so* ?
48 # this looks rather like a package enet-dev !
49 }