wok-current annotate libftdi/receipt @ rev 25556
created recipes for nted and nted-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 22 14:54:15 2023 +0100 (20 months ago) |
parents | ede1d184d5c5 |
children | 5926178cd6fa |
rev | line source |
---|---|
rcx@3715 | 1 # SliTaz package receipt. |
rcx@3715 | 2 |
rcx@3715 | 3 PACKAGE="libftdi" |
Hans-G?nter@24790 | 4 VERSION="0.20" |
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" |
Hans-G?nter@24790 | 9 WEB_SITE="https://www.intra2net.com/en/developer/libftdi/" |
Hans-G?nter@24790 | 10 |
rcx@3715 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20669 | 12 WGET_URL="https://www.intra2net.com/en/developer/libftdi/download/$TARBALL" |
rcx@3715 | 13 |
Hans-G?nter@24790 | 14 DEPENDS="glibc-base libusb libusb-compat" |
Hans-G?nter@24790 | 15 BUILD_DEPENDS="libusb libusb-compat libusb-dev slitaz-toolchain" |
pascal@15473 | 16 |
pascal@24447 | 17 # What is the latest version available today? |
pascal@24447 | 18 current_version() |
pascal@24447 | 19 { |
pascal@24447 | 20 wget -O - https://www.intra2net.com/en/developer/libftdi/download.php 2>/dev/null | \ |
pascal@24447 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 22 } |
pascal@24447 | 23 |
rcx@3715 | 24 # Rules to configure and make the package. |
rcx@3715 | 25 compile_rules() |
rcx@3715 | 26 { |
Hans-G?nter@24790 | 27 ./configure \ |
Hans-G?nter@24790 | 28 --prefix=/usr \ |
rcx@3715 | 29 $CONFIGURE_ARGS && |
rcx@3715 | 30 make && |
Hans-G?nter@24790 | 31 make install DESTDIR=$DESTDIR |
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 |
Hans-G?nter@24790 | 38 |
Hans-G?nter@24790 | 39 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@24790 | 40 cp -a $install/usr/bin $fs/usr |
rcx@3715 | 41 } |