Magellan Linux

Annotation of /branches/R11-unstable/core/usbutils/usbutils-007-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17347 - (hide annotations) (download)
Mon Jun 10 11:13:46 2013 UTC (10 years, 11 months ago) by niro
Original Path: trunk/core/usbutils/usbutils-007-r1.smage2
File size: 1417 byte(s)
auto added: ver bump to 007-r1
1 niro 17347 # $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}/?C=M;O=A' | lasttarball"
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     }