wok view ctypes.sh/receipt @ rev 25808

created recipe for xmenu
author Hans-G?nter Theisgen
date Thu Dec 19 16:09:37 2024 +0100 (5 days ago)
parents 095836df71b7
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ctypes.sh"
4 VERSION="1.2"
5 CATEGORY="development"
6 TAGS="bash ffi"
7 SHORT_DESC="Foreign function interface for bash."
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://github.com/taviso/ctypes.sh"
12 TARBALL="${PACKAGE/./-}-$VERSION.tar.gz"
13 WGET_URL="https://github.com/taviso/$PACKAGE/releases/download/v$VERSION/$TARBALL"
15 DEPENDS="bash libffi"
16 BUILD_DEPENDS="libffi-dev libtool"
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
24 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --prefix=/usr \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install DESTDIR=$DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_folders bin
41 cook_copy_folders lib
42 }
44 testsuite()
45 {
46 readelf -h $install/usr/lib/ctypes.so
47 }