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