Contents of /trunk/core/usbutils/usbutils-004-r1.smage2
Parent Directory | Revision Log
Revision 10073 -
(show annotations)
(download)
Mon Jan 16 19:31:04 2012 UTC (12 years, 8 months ago) by niro
File size: 1444 byte(s)
Mon Jan 16 19:31:04 2012 UTC (12 years, 8 months ago) by niro
File size: 1444 byte(s)
-use a kernel.org mirror, not all files are back online since the hack
1 | # $Id$ |
2 | |
3 | PNAME="usbutils" |
4 | PVER="004" |
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 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 | |
20 | SRC_URI=( |
21 | http://mirror.anl.gov/pub/linux/utils/usb/${PNAME}/${SRCFILE} |
22 | http://www.kernel.org/pub/linux/utils/usb/${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | # projectname is linux-usb but packagename usbutils |
27 | #UP2DATE="updatecmd_sourceforge linux-usb ${PNAME}" |
28 | UP2DATE="updatecmd 'http://www.kernel.org/pub/linux/utils/usb/${PNAME}/?C=M;O=A' | lasttarball" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | cd ${SRCDIR} |
34 | |
35 | # update usb.ids |
36 | install -d ${SRCDIR}/temp || die |
37 | wget -P ${SRCDIR}/temp http://www.linux-usb.org/usb.ids || die |
38 | mv ${SRCDIR}/temp/usb.ids ${SRCDIR} || die |
39 | |
40 | # installs pc file into wrong location |
41 | sed -i '/^pkgconfigdir/s:datadir:datarootdir:' Makefile.in || die |
42 | } |
43 | |
44 | src_compile() |
45 | { |
46 | cd ${SRCDIR} |
47 | |
48 | # put usb.ids in same place as pci.ids (/usr/share/misc) |
49 | mconfigure --datadir=/usr/share/misc || die |
50 | mmake -j1 || die |
51 | } |
52 | |
53 | src_install() |
54 | { |
55 | cd ${SRCDIR} |
56 | |
57 | mmake DESTDIR=${BINDIR} install || die |
58 | |
59 | # we use the libs from libusb-x.x.x-rx cause these are not compatible |
60 | rm -rf ${BINDIR}/usr/lib || die |
61 | rm -rf ${BINDIR}/usr/include || die |
62 | |
63 | minstalldocs AUTHORS COPYING ChangeLog NEWS README || die |
64 | } |