wok-current view libftdi/receipt @ rev 25383
updated units (2.19 -> 2.21)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 17:22:12 2022 +0100 (2022-07-30) |
parents | ede1d184d5c5 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libftdi"
4 VERSION="0.20"
5 CATEGORY="system-tools"
6 SHORT_DESC="A library to talk to FTDI chips using libusb."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="BSD GPL2 LGPL2"
9 WEB_SITE="https://www.intra2net.com/en/developer/libftdi/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://www.intra2net.com/en/developer/libftdi/download/$TARBALL"
14 DEPENDS="glibc-base libusb libusb-compat"
15 BUILD_DEPENDS="libusb libusb-compat libusb-dev slitaz-toolchain"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://www.intra2net.com/en/developer/libftdi/download.php 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 $CONFIGURE_ARGS &&
30 make &&
31 make install DESTDIR=$DESTDIR
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 cp -a $install/usr/bin $fs/usr
41 }