wok-undigest diff libffi/receipt @ rev 1242
added recipes for libffi and libffi-dev
author | Hans-G?nter Theisgen |
---|---|
date | Sat Aug 06 17:47:39 2022 +0100 (22 months ago) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libffi/receipt Sat Aug 06 17:47:39 2022 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="libffi" 1.7 +VERSION="3.4.2" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="A portable foreign function interface library." 1.10 +MAINTAINER="rcx@zoominternet.net" 1.11 +LICENSE="MIT" 1.12 +WEB_SITE="https://sourceware.org/libffi/" 1.13 + 1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 +WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL" 1.16 + 1.17 +DEPENDS="glibc-base" 1.18 + 1.19 +HOST_ARCH="i486 arm" 1.20 + 1.21 +current_version() 1.22 +{ 1.23 + wget -O - $WEB_SITE 2>/dev/null | \ 1.24 + sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" 1.25 +} 1.26 + 1.27 +# Rules to configure and make the package. 1.28 +compile_rules() 1.29 +{ 1.30 + ./configure \ 1.31 + --includedir=/usr/include \ 1.32 + $CONFIGURE_ARGS && 1.33 + make && 1.34 + make install DESTDIR=$DESTDIR 1.35 +} 1.36 + 1.37 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.38 +genpkg_rules() 1.39 +{ 1.40 + cook_copy_files *.so* 1.41 +}