wok annotate libnet/receipt @ rev 25556

created recipes for nted and nted-lang
author Hans-G?nter Theisgen
date Sat Apr 22 14:54:15 2023 +0100 (19 months ago)
parents 65d7d867e0c1
children
rev   line source
slaxemulator@7179 1 # SliTaz package receipt.
slaxemulator@7179 2
slaxemulator@7179 3 PACKAGE="libnet"
Hans-G?nter@24811 4 VERSION="1.2"
slaxemulator@7179 5 CATEGORY="network"
slaxemulator@7179 6 SHORT_DESC="A library which provides API for commonly used low-level net functions."
slaxemulator@7179 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15482 8 LICENSE="BSD"
Hans-G?nter@24811 9 WEB_SITE="https://github.com/libnet/libnet"
Hans-G?nter@24811 10
slaxemulator@7179 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@24811 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL"
slaxemulator@7179 13
pascal@24411 14 # What is the latest version available today?
pascal@24411 15 current_version()
pascal@24411 16 {
pascal@24411 17 wget -O - https://sourceforge.net/projects/libnet-dev/files/ 2>/dev/null | \
pascal@24411 18 sed '/scope="row/!d;s|.*/libnet-||;s|.tar.*||;q'
pascal@24411 19 }
pascal@24411 20
slaxemulator@7179 21 # Rules to configure and make the package.
slaxemulator@7179 22 compile_rules()
slaxemulator@7179 23 {
Hans-G?nter@24811 24 ./configure \
Hans-G?nter@24811 25 --prefix=/usr \
Hans-G?nter@24811 26 --infodir=/usr/share/info \
Hans-G?nter@24811 27 --mandir=/usr/share/man \
slaxemulator@7179 28 $CONFIGURE_ARGS &&
Hans-G?nter@24811 29 make &&
Hans-G?nter@24811 30 make install DESTDIR=$DESTDIR
slaxemulator@7179 31 }
slaxemulator@7179 32
slaxemulator@7179 33 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7179 34 genpkg_rules()
slaxemulator@7179 35 {
Hans-G?nter@24811 36 cook_copy_files *.so*
slaxemulator@7179 37 }