wok annotate libusb-compat/receipt @ rev 25600

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 15:14:43 2023 +0000 (10 months ago)
parents 5ea0ce1cecc0
children
rev   line source
pankso@2899 1 # SliTaz package receipt.
pankso@2899 2
pankso@2899 3 PACKAGE="libusb-compat"
Hans-G?nter@21331 4 VERSION="0.1.7"
pankso@2899 5 CATEGORY="system-tools"
erkan@20364 6 SHORT_DESC="Compatibility layer to convert libusb 0.1 calls into 1.0 equivalents."
pankso@2899 7 MAINTAINER="pankso@slitaz.org"
pascal@15482 8 LICENSE="LGPL2.1"
Hans-G?nter@21331 9 WEB_SITE="https://github.com/libusb/libusb-compat-0.1"
Hans-G?nter@21331 10
pankso@2899 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@21331 12 WGET_URL="https://github.com/libusb/$PACKAGE-0.1/releases/download/v$VERSION/$TARBALL"
pankso@2899 13
pankso@9754 14 DEPENDS="libusb"
pascal@16366 15 BUILD_DEPENDS="libusb-dev udev-dev"
pankso@9754 16
Hans-G?nter@21331 17 HOST_ARCH="i486 arm"
Hans-G?nter@21331 18
pascal@25600 19 # What is the latest version available today?
pascal@24055 20 current_version()
pascal@24055 21 {
pascal@24055 22 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@25600 23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 24 }
pascal@24055 25
pankso@2899 26 # Rules to configure and make the package.
pankso@2899 27 compile_rules()
pankso@2899 28 {
Hans-G?nter@21331 29 ./configure \
Hans-G?nter@21331 30 --prefix=/usr \
pankso@2899 31 $CONFIGURE_ARGS &&
Hans-G?nter@21331 32 make -j 1 &&
pascal@15482 33 make DESTDIR=$DESTDIR install
pankso@2899 34 }
pankso@2899 35
pankso@2899 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2899 37 genpkg_rules()
pankso@2899 38 {
pankso@2899 39 mkdir -p $fs/usr/lib
pascal@15482 40 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@2899 41 }