# HG changeset patch # User Hans-G?nter Theisgen # Date 1642431363 -3600 # Node ID af88ca2c91a9333dc697a951c7a4efe0fa743f86 # Parent 922f061231c2747ec3071e92d2b98ee987042413 created recipe for ctypes.sh diff -r 922f061231c2 -r af88ca2c91a9 ctypes.sh/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ctypes.sh/description.txt Mon Jan 17 15:56:03 2022 +0100 @@ -0,0 +1,3 @@ +ctypes.sh is a bash plugin that provides a foreign function interface +directly in your shell. +In other words, it allows you to call routines in shared libraries from within bash. diff -r 922f061231c2 -r af88ca2c91a9 ctypes.sh/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ctypes.sh/receipt Mon Jan 17 15:56:03 2022 +0100 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="ctypes.sh" +VERSION="1.2" +CATEGORY="development" +TAGS="bash ffi" +SHORT_DESC="Foreign function interface for bash." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://github.com/taviso/ctypes.sh" + +TARBALL="${PACKAGE/./-}-$VERSION.tar.gz" +WGET_URL="https://github.com/taviso/$PACKAGE/releases/download/v$VERSION/$TARBALL" + +DEPENDS="bash libffi" +BUILD_DEPENDS="automake libffi-dev" + +HOST_ARCH="i486 arm" + +# Rules to configure and make the package. +compile_rules() +{ + ./autogen.sh && + ./configure \ + --prefix=/usr \ + $CONFIGURE_ARGS && + make && + make install DESTDIR=$DESTDIR +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cook_copy_folders bin + cook_copy_folders lib +} + +testsuite() +{ + readelf -h $install/usr/lib/ctypes.so +}