Magellan Linux

Contents of /trunk/core/usbutils/usbutils-0.82-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1740 - (show annotations) (download)
Sat May 23 21:52:38 2009 UTC (14 years, 11 months ago) by niro
File size: 1253 byte(s)
auto added: ver bump to 0.82-r1
1 # $Id$
2
3 PNAME="usbutils"
4 PVER="0.82"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="Various utilities dealing with the USB bus."
11 HOMEPAGE="http://usb.cs.tum.edu/"
12
13 DEPEND=">= virtual/glibc
14 >= dev-libs/libusb-0.1"
15
16 SDEPEND=">= net-misc/wget-1.9"
17
18 SRCFILE="${PNAME}-${PVER}.tar.gz"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 sminclude gnuconfig
22
23 SRC_URI=(
24 sourceforge://linux-usb/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 )
27
28 # projectname is linux-usb but packagename usbutils
29 UP2DATE="updatecmd_sourceforge linux-usb ${PNAME}"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 # support more compiler targets
37 gnuconfig-update || die
38
39 # update usb.ids
40 install -d ${SRCDIR}/temp || die
41 wget -P ${SRCDIR}/temp http://www.linux-usb.org/usb.ids || die
42 mv ${SRCDIR}/temp/usb.ids ${SRCDIR} || 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 }

Properties

Name Value
svn:keywords Id