Magellan Linux

Contents of /branches/magellan-next/core/usbutils/usbutils-0.90-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6069 - (show annotations) (download)
Thu Aug 19 10:57:57 2010 UTC (13 years, 8 months ago) by niro
File size: 1547 byte(s)
auto added: ver bump to 0.90-r1
1 # $Id: usbutils-0.86-r2.smage2 3123 2009-10-13 14:43:44Z niro $
2
3 PNAME="usbutils"
4 PVER="0.90"
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.12"
15
16 SDEPEND=">= net-misc/wget-1.12"
17
18 SRCFILE="${PNAME}-${PVER}.tar.bz2"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 sminclude gnuconfig
22
23 SRC_URI=(
24 http://www.kernel.org/pub/linux/utils/usb/${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 )
27
28 # projectname is linux-usb but packagename usbutils
29 #UP2DATE="updatecmd_sourceforge linux-usb ${PNAME}"
30 UP2DATE="updatecmd 'http://www.kernel.org/pub/linux/utils/usb/${PNAME}/?C=M;O=A' | lasttarball"
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 cd ${SRCDIR}
36
37 # support more compiler targets
38 gnuconfig-update || die
39
40 # update usb.ids
41 install -d ${SRCDIR}/temp || die
42 wget -P ${SRCDIR}/temp http://www.linux-usb.org/usb.ids || die
43 mv ${SRCDIR}/temp/usb.ids ${SRCDIR} || die
44
45 # installs pc file into wrong location
46 sed -i '/^pkgconfigdir/s:datadir:datarootdir:' Makefile.in || die
47 }
48
49 src_compile()
50 {
51 cd ${SRCDIR}
52
53 # put usb.ids in same place as pci.ids (/usr/share/misc)
54 mconfigure --datadir=/usr/share/misc || die
55 mmake -j1 || die
56 }
57
58 src_install()
59 {
60 cd ${SRCDIR}
61
62 mmake DESTDIR=${BINDIR} install || die
63
64 # we use the libs from libusb-x.x.x-rx cause these are not compatible
65 rm -rf ${BINDIR}/usr/lib || die
66 rm -rf ${BINDIR}/usr/include || die
67
68 minstalldocs AUTHORS COPYING ChangeLog NEWS README || die
69 }