wok-next view usbutils/receipt @ rev 20570
More fix libtool; audit: apply patch.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 13 09:28:50 2018 +0300 (2018-04-13) |
parents | 4396aed7eb01 |
children | 1ff723a6455b |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://linux-usb.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 #WGET_URL="http://www.kernel.org/pub/linux/utils/usb/$PACKAGE/$TARBALL"
13 WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/utils/usb/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="libusb-dev zlib-dev"
16 SPLIT="usbutils-dev"
18 compile_rules() {
19 ./configure \
20 --prefix=/usr \
21 --libdir=/usr/lib \
22 --datadir=/usr/share/misc \
23 $CONFIGURE_ARGS &&
24 make && make install
25 }
27 genpkg_rules() {
28 case $PACKAGE in
29 usbutils)
30 mkdir -p $fs/usr
31 cp -a $install/usr/bin $fs/usr
32 cp -a $install/usr/sbin $fs/usr
33 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices
34 rm -f $fs/usr/bin/lsusb.py
35 DEPENDS="glibc-base libusb libusb-compat zlib usbids"
36 TAGS="usb"
37 ;;
38 *-dev)
39 mkdir -p $fs/usr/lib
40 cp -a $install/usr/share/pkgconfig $fs/usr/lib
41 ;;
42 esac
43 }
45 post_remove_usbutils() {
46 ln -s /bin/busybox "$1/usr/bin/lsusb"
47 }