wok view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="libusb-compat"
4 VERSION="0.1.7"
5 CATEGORY="system-tools"
6 SHORT_DESC="Compatibility layer to convert libusb 0.1 calls into 1.0 equivalents."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://github.com/libusb/libusb-compat-0.1"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://github.com/libusb/$PACKAGE-0.1/releases/download/v$VERSION/$TARBALL"
14 DEPENDS="libusb"
15 BUILD_DEPENDS="libusb-dev udev-dev"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --prefix=/usr \
31 $CONFIGURE_ARGS &&
32 make -j 1 &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 }