Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8941 - (show annotations) (download)
Wed Aug 24 17:48:16 2011 UTC (12 years, 8 months ago) by niro
File size: 1389 byte(s)
auto added: ver bump to 004-r1
1 # $Id$
2
3 PNAME="usbutils"
4 PVER="004"
5 PBUILD="r1"
6
7 PCATEGORIE="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.0"
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://www.kernel.org/pub/linux/utils/usb/${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 # projectname is linux-usb but packagename usbutils
26 #UP2DATE="updatecmd_sourceforge linux-usb ${PNAME}"
27 UP2DATE="updatecmd 'http://www.kernel.org/pub/linux/utils/usb/${PNAME}/?C=M;O=A' | lasttarball"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 cd ${SRCDIR}
33
34 # update usb.ids
35 install -d ${SRCDIR}/temp || die
36 wget -P ${SRCDIR}/temp http://www.linux-usb.org/usb.ids || die
37 mv ${SRCDIR}/temp/usb.ids ${SRCDIR} || die
38
39 # installs pc file into wrong location
40 sed -i '/^pkgconfigdir/s:datadir:datarootdir:' Makefile.in || die
41 }
42
43 src_compile()
44 {
45 cd ${SRCDIR}
46
47 # put usb.ids in same place as pci.ids (/usr/share/misc)
48 mconfigure --datadir=/usr/share/misc || die
49 mmake -j1 || die
50 }
51
52 src_install()
53 {
54 cd ${SRCDIR}
55
56 mmake DESTDIR=${BINDIR} install || die
57
58 # we use the libs from libusb-x.x.x-rx cause these are not compatible
59 rm -rf ${BINDIR}/usr/lib || die
60 rm -rf ${BINDIR}/usr/include || die
61
62 minstalldocs AUTHORS COPYING ChangeLog NEWS README || die
63 }