wok view usbutils/receipt @ rev 24849

updated libwebp and libwebp-dev (1.1.0 -> 1.2.2)
author Hans-G?nter Theisgen
date Fri Mar 25 17:27:11 2022 +0100 (2022-03-25)
parents 86790a278e70
children bfaaab0fd7b3
line source
1 # SliTaz package receipt.
3 PACKAGE="usbutils"
4 VERSION="007"
5 CATEGORY="system-tools"
6 SHORT_DESC="Displaying information about USB."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://linux-usb.sourceforge.net/"
11 #WGET_URL="https://www.kernel.org/pub/linux/utils/usb/$PACKAGE/$TARBALL"
12 WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/utils/usb/$PACKAGE/$TARBALL"
13 HOST_ARCH="i486 arm"
15 TAGS="usb"
16 DEPENDS="glibc-base libusb libusb-compat zlib usbids"
17 BUILD_DEPENDS="libusb-dev pkg-config zlib-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://www.kernel.org/pub/linux/utils/usb/usbutils/ 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --prefix=/usr \
31 --libdir=/usr/lib \
32 --datadir=/usr/share/misc \
33 $CONFIGURE_ARGS &&
34 make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/sbin $fs/usr
43 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices
44 rm -f $fs/usr/bin/lsusb.py
45 }
47 post_remove()
48 {
49 ln -s /bin/busybox "$1/usr/bin/lsusb"
50 }