Contents of /trunk/core/usbutils/usbutils-007-r1.smage2
Parent Directory | Revision Log
Revision 29725 -
(show annotations)
(download)
Tue Oct 10 07:19:35 2017 UTC (6 years, 11 months ago) by niro
File size: 1409 byte(s)
Tue Oct 10 07:19:35 2017 UTC (6 years, 11 months ago) by niro
File size: 1409 byte(s)
-updated UP2DATE uri
1 | # $Id$ |
2 | |
3 | PNAME="usbutils" |
4 | PVER="007" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="sys-apps" |
8 | |
9 | DESCRIPTION="Various utilities dealing with the USB bus." |
10 | HOMEPAGE="http://usb.cs.tum.edu/" |
11 | |
12 | DEPEND=">= virtual/glibc |
13 | >= dev-libs/libusb-1" |
14 | |
15 | SDEPEND=">= net-misc/wget-1.12" |
16 | |
17 | PROVIDE="virtual/usbutils" |
18 | |
19 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 | |
22 | SRC_URI=( |
23 | http://pkgs.fedoraproject.org/repo/pkgs/${PNAME}/${SRCFILE}/2e990265d472e2f6f0662356d654683b/${SRCFILE} |
24 | http://mirror.anl.gov/pub/linux/utils/usb/${PNAME}/${SRCFILE} |
25 | http://www.kernel.org/pub/linux/utils/usb/${PNAME}/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | ) |
28 | |
29 | UP2DATE="updatecmd http://www.kernel.org/pub/linux/utils/usb/${PNAME} | highesttarball" |
30 | |
31 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | cd ${SRCDIR} |
35 | |
36 | # update usb.ids |
37 | install -d ${SRCDIR}/temp || die |
38 | wget -P ${SRCDIR}/temp http://www.linux-usb.org/usb.ids || die |
39 | mv ${SRCDIR}/temp/usb.ids ${SRCDIR} || die |
40 | |
41 | # gen missing configure script |
42 | mautoreconf || die |
43 | } |
44 | |
45 | src_compile() |
46 | { |
47 | cd ${SRCDIR} |
48 | |
49 | # put usb.ids in same place as pci.ids (/usr/share/misc) |
50 | mconfigure --datadir=/usr/share/misc || die |
51 | mmake -j1 || die |
52 | } |
53 | |
54 | src_install() |
55 | { |
56 | cd ${SRCDIR} |
57 | |
58 | mmake DESTDIR=${BINDIR} install || die |
59 | |
60 | # we use the libs from libusb-x.x.x-rx cause these are not compatible |
61 | rm -rf ${BINDIR}/usr/lib || die |
62 | rm -rf ${BINDIR}/usr/include || die |
63 | |
64 | minstalldocs AUTHORS COPYING ChangeLog NEWS README || die |
65 | } |