wok-current annotate usbutils/receipt @ rev 15844
dosfstools, flac: update WGET_URL
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 27 11:21:33 2014 +0000 (2014-01-27) |
parents | fd59449e3608 |
children | b62b949e9826 |
rev | line source |
---|---|
erjo@621 | 1 # SliTaz package receipt. |
erjo@621 | 2 |
erjo@621 | 3 PACKAGE="usbutils" |
slaxemulator@11044 | 4 VERSION="004" |
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@9804 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
erjo@621 | 10 WEB_SITE="http://linux-usb.sourceforge.net/" |
slaxemulator@11046 | 11 #WGET_URL="http://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" |
jozee@4974 | 13 TAGS="usb" |
slaxemulator@11046 | 14 BUGS="usb.ids is not gziped and in /usr/share since it's where udev look for it" |
erjo@621 | 15 |
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 { |
erjo@621 | 22 cd $src |
pankso@782 | 23 ./configure \ |
pankso@782 | 24 --prefix=/usr \ |
slaxemulator@10077 | 25 --libdir=/usr/lib \ |
pankso@10401 | 26 --datadir=/usr/share \ |
slaxemulator@10077 | 27 $CONFIGURE_ARGS && |
pankso@9804 | 28 make && make install |
erjo@621 | 29 } |
erjo@621 | 30 |
erjo@621 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@621 | 32 genpkg_rules() |
erjo@621 | 33 { |
slaxemulator@11044 | 34 mkdir -p $fs/usr |
pascal@15000 | 35 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 36 cp -a $install/usr/sbin $fs/usr |
pankso@10400 | 37 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices |
erjo@621 | 38 } |
mojo@11676 | 39 |
mojo@11676 | 40 # Pre and post install commands for Tazpkg. |
mojo@11676 | 41 # Busybox lsusb does not display human-readable usb.ids hardware info. |
mojo@11676 | 42 # We must remove busybox lsusb symlink before installing. |
mojo@11676 | 43 # |
mojo@11676 | 44 pre_install() |
mojo@11676 | 45 { |
mojo@11676 | 46 local root |
mojo@11676 | 47 root=$1 |
mojo@11676 | 48 echo "Processing pre-install commands..." |
mojo@11676 | 49 echo -n "Removing Busybox lsusb... " |
mojo@11676 | 50 rm -f $root/usr/bin/lsusb |
mojo@11676 | 51 status |
mojo@11676 | 52 } |
mojo@11676 | 53 |
mojo@11676 | 54 post_remove() |
mojo@11676 | 55 { |
mojo@11676 | 56 ln -s /bin/busybox $1/usr/bin/lsusb |
mojo@11676 | 57 } |