wok-current view libusb/receipt @ rev 25693

Up depends pkgs for cups, need to rebuild it for ssl 3.0
author Stanislas Leduc <shann@slitaz.org>
date Sun Mar 24 15:17:37 2024 +0000 (3 months ago)
parents e53dd413c6de
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libusb"
4 VERSION="1.0.25"
5 CATEGORY="system-tools"
6 SHORT_DESC="USB access library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://libusb.info/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 DEPENDS="gcc-lib-base udev"
15 BUILD_DEPENDS="gcc udev-dev"
17 # Need first build without udev, and rebuild with it
19 HOST_ARCH="i486 arm"
21 current_version()
22 {
23 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # Need build first with --disable-udev
31 # to avoid loop dep
33 ./configure \
34 CC=gcc \
35 CXX=g++ \
36 $CONFIGURE_ARGS &&
37 make &&
38 make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cook_copy_files *.so*
45 }