wok annotate rpcbind/receipt @ rev 24540
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 16:54:57 2022 +0000 (2022-02-23) |
parents | 3f7f548986f7 |
children | 67b094c79810 |
rev | line source |
---|---|
pascal@6257 | 1 # SliTaz package receipt. |
pascal@6257 | 2 |
pascal@6257 | 3 PACKAGE="rpcbind" |
Hans-G?nter@23616 | 4 VERSION="1.2.5" |
pascal@6257 | 5 CATEGORY="network" |
pascal@6257 | 6 SHORT_DESC="RPC program numbers to universal addresses converter." |
pascal@6257 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15601 | 8 LICENSE="BSD" |
Hans-G?nter@23616 | 9 WEB_SITE="https://sourceforge.net/projects/rpcbind/" |
Hans-G?nter@23616 | 10 |
pascal@6257 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@6257 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@16236 | 13 |
pascal@6257 | 14 DEPENDS="libtirpc" |
pascal@6257 | 15 BUILD_DEPENDS="libtirpc-dev" |
pascal@6257 | 16 |
Hans-G?nter@23616 | 17 HOST_ARCH="i486 arm" |
Hans-G?nter@23616 | 18 |
pankso@16236 | 19 # Handle cross compilation. |
pankso@16236 | 20 case "$ARCH" in |
pascal@17670 | 21 arm*) export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include/tirpc" ;; |
pankso@16236 | 22 esac |
pankso@16236 | 23 |
pascal@24348 | 24 # What is the latest version available today? |
pascal@24348 | 25 current_version() |
pascal@24348 | 26 { |
pascal@24348 | 27 wget -O - https://sourceforge.net/projects/rpcbind/files/rpcbind/ 2>/dev/null | \ |
pascal@24348 | 28 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24348 | 29 sed '/scope="row/!d;s|.*/rpcbind/||;s|/.*||;q' |
pascal@24348 | 30 } |
pascal@24348 | 31 |
pascal@6257 | 32 # Rules to configure and make the package. |
pascal@6257 | 33 compile_rules() |
pascal@6257 | 34 { |
Hans-G?nter@23616 | 35 ./configure \ |
Hans-G?nter@23616 | 36 --with-systemdsystemunitdir=no \ |
pankso@16236 | 37 $CONFIGURE_ARGS && |
Hans-G?nter@23616 | 38 make && |
Hans-G?nter@23616 | 39 make install |
pascal@6257 | 40 } |
pascal@6257 | 41 |
pascal@6257 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@6257 | 43 genpkg_rules() |
pascal@6257 | 44 { |
pascal@6257 | 45 mkdir -p $fs/usr |
Hans-G?nter@23616 | 46 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23616 | 47 cp -a $install/usr/sbin $fs/usr |
pascal@6257 | 48 } |