SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libftdi"

# SliTaz package receipt.

PACKAGE="libftdi"
VERSION="0.20"
CATEGORY="system-tools"
SHORT_DESC="A library to talk to FTDI chips using libusb."
MAINTAINER="rcx@zoominternet.net"
LICENSE="BSD GPL2 LGPL2"
WEB_SITE="https://www.intra2net.com/en/developer/libftdi/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://www.intra2net.com/en/developer/libftdi/download/$TARBALL"

DEPENDS="glibc-base libusb libusb-compat"
BUILD_DEPENDS="libusb libusb-compat libusb-dev slitaz-toolchain"

# What is the latest version available today?
current_version()
{
    wget -O - https://www.intra2net.com/en/developer/libftdi/download.php 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure        \
        --prefix=/usr    \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib

    cp -a $install/usr/lib/*.so*    $fs/usr/lib
    cp -a $install/usr/bin        $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)