wok annotate libffi/receipt @ rev 24074

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 08 09:18:48 2021 +0000 (2021-07-08)
parents a4e0ca27c317
children 7186c6ae9ee7
rev   line source
rcx@3261 1 # SliTaz package receipt.
rcx@3261 2
rcx@3261 3 PACKAGE="libffi"
Hans-G?nter@23029 4 VERSION="3.3"
rcx@3261 5 CATEGORY="development"
rcx@3261 6 SHORT_DESC="A portable foreign function interface library."
rcx@3261 7 MAINTAINER="rcx@zoominternet.net"
pascal@15473 8 LICENSE="MIT"
Hans-G?nter@21223 9 WEB_SITE="https://sourceware.org/libffi/"
Hans-G?nter@21223 10
rcx@3261 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
rcx@3261 12 WGET_URL="ftp://sourceware.org/pub/$PACKAGE/$TARBALL"
pankso@12825 13
pankso@12825 14 DEPENDS="glibc-base"
rcx@3261 15
Hans-G?nter@21223 16 HOST_ARCH="i486 arm"
Hans-G?nter@21223 17
pascal@24074 18 current_version()
pascal@24074 19 {
pascal@24074 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24074 21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
pascal@24074 22 }
pascal@24074 23
rcx@3261 24 # Rules to configure and make the package.
rcx@3261 25 compile_rules()
rcx@3261 26 {
Hans-G?nter@21223 27 ./configure \
Hans-G?nter@21223 28 --includedir=/usr/include \
rcx@3261 29 $CONFIGURE_ARGS &&
Hans-G?nter@21223 30 make -j 1 &&
Hans-G?nter@21223 31 make DESTDIR=$DESTDIR install
rcx@3261 32 }
rcx@3261 33
rcx@3261 34 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3261 35 genpkg_rules()
rcx@3261 36 {
rcx@3261 37 mkdir -p $fs/usr/lib
Hans-G?nter@23029 38 cp -a $install/usr/lib/*.so* $fs/usr/lib
rcx@3261 39 }