wok-6.x annotate usbutils/receipt @ rev 22822
Add emu8051
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 06 12:27:36 2020 +0100 (2020-02-06) |
parents | d6ca18366f41 |
children | 3105f866bc3e |
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@20421 | 11 #WGET_URL="https://www.kernel.org/pub/linux/utils/usb/$PACKAGE/$TARBALL" |
slaxemulator@11046 | 12 WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/utils/usb/$PACKAGE/$TARBALL" |
pankso@16079 | 13 HOST_ARCH="i486 arm" |
pankso@16079 | 14 |
jozee@4974 | 15 TAGS="usb" |
slaxemulator@11044 | 16 DEPENDS="glibc-base libusb libusb-compat zlib usbids" |
slaxemulator@10403 | 17 BUILD_DEPENDS="libusb-dev pkg-config zlib-dev" |
slaxemulator@10403 | 18 |
erjo@621 | 19 # Rules to configure and make the package. |
erjo@621 | 20 compile_rules() |
erjo@621 | 21 { |
pankso@782 | 22 ./configure \ |
pankso@782 | 23 --prefix=/usr \ |
slaxemulator@10077 | 24 --libdir=/usr/lib \ |
pankso@15871 | 25 --datadir=/usr/share/misc \ |
slaxemulator@10077 | 26 $CONFIGURE_ARGS && |
pankso@9804 | 27 make && make install |
erjo@621 | 28 } |
erjo@621 | 29 |
erjo@621 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@621 | 31 genpkg_rules() |
erjo@621 | 32 { |
slaxemulator@11044 | 33 mkdir -p $fs/usr |
pascal@15000 | 34 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 35 cp -a $install/usr/sbin $fs/usr |
pankso@10400 | 36 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices |
pankso@15871 | 37 rm -f $fs/usr/bin/lsusb.py |
erjo@621 | 38 } |
mojo@11676 | 39 |
mojo@11676 | 40 post_remove() |
mojo@11676 | 41 { |
pascal@18730 | 42 ln -s /bin/busybox "$1/usr/bin/lsusb" |
mojo@11676 | 43 } |