Annotation of /branches/magellan-next/core/usbutils/usbutils-002-r1.smage2
Parent Directory | Revision Log
Revision 7582 -
(hide annotations)
(download)
Thu May 26 21:55:02 2011 UTC (13 years ago) by niro
File size: 1406 byte(s)
Thu May 26 21:55:02 2011 UTC (13 years ago) by niro
File size: 1406 byte(s)
auto added: ver bump to 002-r1
1 | niro | 7582 | # $Id$ |
2 | |||
3 | PNAME="usbutils" | ||
4 | PVER="002" | ||
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-1.0" | ||
15 | |||
16 | SDEPEND=">= net-misc/wget-1.12" | ||
17 | |||
18 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
20 | |||
21 | SRC_URI=( | ||
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 | } |