wok-next view usbutils/receipt @ rev 20458
Unlock x86_64 architecture
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 12:12:14 2018 +0200 (2018-03-02) |
parents | d6ca18366f41 |
children | 4396aed7eb01 |
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://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"
14 TAGS="usb"
15 DEPENDS="glibc-base libusb libusb-compat zlib usbids"
16 BUILD_DEPENDS="libusb-dev pkg-config zlib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --prefix=/usr \
23 --libdir=/usr/lib \
24 --datadir=/usr/share/misc \
25 $CONFIGURE_ARGS &&
26 make && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/sbin $fs/usr
35 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices
36 rm -f $fs/usr/bin/lsusb.py
37 }
39 post_remove()
40 {
41 ln -s /bin/busybox "$1/usr/bin/lsusb"
42 }