wok annotate libftdi/receipt @ rev 24447

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 17:51:14 2022 +0000 (2022-02-14)
parents a78610b2eb47
children 1124e71377d3
rev   line source
rcx@3715 1 # SliTaz package receipt.
rcx@3715 2
rcx@3715 3 PACKAGE="libftdi"
rcx@6009 4 VERSION="0.18"
rcx@3715 5 CATEGORY="system-tools"
rcx@3715 6 SHORT_DESC="A library to talk to FTDI chips using libusb."
rcx@3715 7 MAINTAINER="rcx@zoominternet.net"
pascal@15473 8 LICENSE="BSD GPL2 LGPL2"
rcx@3715 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20669 10 WEB_SITE="https://www.intra2net.com/en/developer/libftdi/"
pascal@20669 11 WGET_URL="https://www.intra2net.com/en/developer/libftdi/download/$TARBALL"
rcx@3715 12
pascal@15473 13 DEPENDS="glibc-base libusb libusb-compat gcc-lib-base"
pascal@15473 14 BUILD_DEPENDS="slitaz-toolchain libusb-dev libusb libusb-compat"
pascal@15473 15
pascal@24447 16 # What is the latest version available today?
pascal@24447 17 current_version()
pascal@24447 18 {
pascal@24447 19 wget -O - https://www.intra2net.com/en/developer/libftdi/download.php 2>/dev/null | \
pascal@24447 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24447 21 }
pascal@24447 22
rcx@3715 23 # Rules to configure and make the package.
rcx@3715 24 compile_rules()
rcx@3715 25 {
rcx@3715 26 cd $src
rcx@3715 27 ./configure \
rcx@3715 28 --prefix=/usr \
rcx@3715 29 $CONFIGURE_ARGS &&
rcx@3715 30 make &&
pascal@11821 31 make DESTDIR=$DESTDIR install
rcx@3715 32 }
rcx@3715 33
rcx@3715 34 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3715 35 genpkg_rules()
rcx@3715 36 {
rcx@3715 37 mkdir -p $fs/usr/lib
pascal@15473 38 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15473 39 cp -a $install/usr/bin $fs/usr
rcx@3715 40 }