wok-6.x view ctypes.sh/receipt @ rev 24326

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 27 12:16:00 2022 +0000 (2022-01-27)
parents 8c77592c608a
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 '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;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 }