SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ctypes.sh"

# 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="libffi-dev libtool"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/down*} 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./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
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)