wok-current view usbutils/receipt @ rev 25124
updated apache-mod-perl (2.0.8 -> 2.0.11)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 28 16:23:55 2022 +0100 (2022-06-28) |
parents | 3105f866bc3e |
children | 7dd01dedad38 |
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="http://deb.debian.org/debian/pool/main/u/usbutils/usbutils_$VERSION.orig.tar.xz"
12 HOST_ARCH="i486 arm"
14 TAGS="usb"
15 DEPENDS="glibc-base libusb libusb-compat zlib usbids"
16 BUILD_DEPENDS="libusb-dev pkg-config zlib-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://www.kernel.org/pub/linux/utils/usb/usbutils/ 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --prefix=/usr \
30 --libdir=/usr/lib \
31 --datadir=/usr/share/misc \
32 $CONFIGURE_ARGS &&
33 make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/sbin $fs/usr
42 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices
43 rm -f $fs/usr/bin/lsusb.py
44 }
46 post_remove()
47 {
48 ln -s /bin/busybox "$1/usr/bin/lsusb"
49 }