wok-current annotate usbutils/receipt @ rev 25197
updated python-ipy (1.00 -> 1.01)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 11:09:33 2022 +0100 (2022-07-13) |
parents | 3105f866bc3e |
children | 7dd01dedad38 |
rev | line source |
---|---|
erjo@621 | 1 # SliTaz package receipt. |
erjo@621 | 2 |
erjo@621 | 3 PACKAGE="usbutils" |
pankso@15871 | 4 VERSION="007" |
erjo@621 | 5 CATEGORY="system-tools" |
erjo@621 | 6 SHORT_DESC="Displaying information about USB." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pankso@15871 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
erjo@621 | 10 WEB_SITE="http://linux-usb.sourceforge.net/" |
pascal@25041 | 11 WGET_URL="http://deb.debian.org/debian/pool/main/u/usbutils/usbutils_$VERSION.orig.tar.xz" |
pankso@16079 | 12 HOST_ARCH="i486 arm" |
pankso@16079 | 13 |
jozee@4974 | 14 TAGS="usb" |
slaxemulator@11044 | 15 DEPENDS="glibc-base libusb libusb-compat zlib usbids" |
slaxemulator@10403 | 16 BUILD_DEPENDS="libusb-dev pkg-config zlib-dev" |
slaxemulator@10403 | 17 |
pascal@24353 | 18 # What is the latest version available today? |
pascal@24353 | 19 current_version() |
pascal@24353 | 20 { |
pascal@24353 | 21 wget -O - https://www.kernel.org/pub/linux/utils/usb/usbutils/ 2>/dev/null | \ |
pascal@24353 | 22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24353 | 23 } |
pascal@24353 | 24 |
erjo@621 | 25 # Rules to configure and make the package. |
erjo@621 | 26 compile_rules() |
erjo@621 | 27 { |
pankso@782 | 28 ./configure \ |
pankso@782 | 29 --prefix=/usr \ |
slaxemulator@10077 | 30 --libdir=/usr/lib \ |
pankso@15871 | 31 --datadir=/usr/share/misc \ |
slaxemulator@10077 | 32 $CONFIGURE_ARGS && |
pankso@9804 | 33 make && make install |
erjo@621 | 34 } |
erjo@621 | 35 |
erjo@621 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@621 | 37 genpkg_rules() |
erjo@621 | 38 { |
slaxemulator@11044 | 39 mkdir -p $fs/usr |
pascal@15000 | 40 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 41 cp -a $install/usr/sbin $fs/usr |
pankso@10400 | 42 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices |
pankso@15871 | 43 rm -f $fs/usr/bin/lsusb.py |
erjo@621 | 44 } |
mojo@11676 | 45 |
mojo@11676 | 46 post_remove() |
mojo@11676 | 47 { |
pascal@18730 | 48 ln -s /bin/busybox "$1/usr/bin/lsusb" |
mojo@11676 | 49 } |