wok-current rev 24305
created recipe for ctypes.sh
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jan 17 15:56:03 2022 +0100 (2022-01-17) |
parents | 922f061231c2 |
children | 3284e9c4ccb9 |
files | ctypes.sh/description.txt ctypes.sh/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ctypes.sh/description.txt Mon Jan 17 15:56:03 2022 +0100 1.3 @@ -0,0 +1,3 @@ 1.4 +ctypes.sh is a bash plugin that provides a foreign function interface 1.5 +directly in your shell. 1.6 +In other words, it allows you to call routines in shared libraries from within bash.
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/ctypes.sh/receipt Mon Jan 17 15:56:03 2022 +0100 2.3 @@ -0,0 +1,41 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="ctypes.sh" 2.7 +VERSION="1.2" 2.8 +CATEGORY="development" 2.9 +TAGS="bash ffi" 2.10 +SHORT_DESC="Foreign function interface for bash." 2.11 +MAINTAINER="maintainer@slitaz.org" 2.12 +LICENSE="MIT" 2.13 +WEB_SITE="https://github.com/taviso/ctypes.sh" 2.14 + 2.15 +TARBALL="${PACKAGE/./-}-$VERSION.tar.gz" 2.16 +WGET_URL="https://github.com/taviso/$PACKAGE/releases/download/v$VERSION/$TARBALL" 2.17 + 2.18 +DEPENDS="bash libffi" 2.19 +BUILD_DEPENDS="automake libffi-dev" 2.20 + 2.21 +HOST_ARCH="i486 arm" 2.22 + 2.23 +# Rules to configure and make the package. 2.24 +compile_rules() 2.25 +{ 2.26 + ./autogen.sh && 2.27 + ./configure \ 2.28 + --prefix=/usr \ 2.29 + $CONFIGURE_ARGS && 2.30 + make && 2.31 + make install DESTDIR=$DESTDIR 2.32 +} 2.33 + 2.34 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.35 +genpkg_rules() 2.36 +{ 2.37 + cook_copy_folders bin 2.38 + cook_copy_folders lib 2.39 +} 2.40 + 2.41 +testsuite() 2.42 +{ 2.43 + readelf -h $install/usr/lib/ctypes.so 2.44 +}