Magellan Linux

Annotation of /trunk/core/hwinfo/hwinfo-15.3-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1215 - (hide annotations) (download)
Sun Apr 26 12:30:04 2009 UTC (15 years, 2 months ago) by niro
File size: 1401 byte(s)
-rev bump to 15.3-r2; rebuild
1 niro 1215 # $Id$
2    
3     PNAME="hwinfo"
4     PVER="15.3"
5     PBUILD="r2"
6    
7     PCATEGORIE="sys-apps"
8     STATE="unstable"
9    
10     DESCRIPTION="hwinfo is the hardware detection tool used in SuSE Linux."
11     HOMEPAGE="http://www.suse.com/"
12    
13     DEPEND=">= sys-fs/sysfsutils-2
14     >= sys-apps/hal-0.5.11
15     >= sys-apps/dbus-1.2"
16    
17     SRCFILE="${PNAME}_${PVER}.orig.tar.gz"
18     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19    
20     sminclude mtools
21    
22     SRC_URI=(
23     http://ftp.de.debian.org/debian/pool/main/h/${PNAME}/${SRCFILE}
24     mirror://${PNAME}/${SRCFILE}
25     mirror://${PNAME}/${PNAME}-13.41-debian-all-1.patch
26     mirror://${PNAME}/${PNAME}-13.41-remove-sbin.patch
27     )
28    
29     UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/h/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).orig.*/\1/;$ p'"
30    
31     src_prepare()
32     {
33     munpack ${SRCFILE} || die
34     cd ${SRCDIR}
35    
36     # apply debian patches
37     mpatch ${PNAME}-13.41-debian-all-1.patch || die
38    
39     # remove empty $(destdir)/sbin from makefile
40     mpatch ${PNAME}-13.41-remove-sbin.patch || die
41     }
42    
43     src_compile()
44     {
45     cd ${SRCDIR}
46     mmake -j1 EXTRA_FLAGS="${CFLAGS}" || die
47     }
48    
49     src_install()
50     {
51     cd ${SRCDIR}
52     mmake DESTDIR=${BINDIR} install || die
53    
54     # respect multilib
55     if [[ $(mlibdir) != lib ]]
56     then
57     mv ${BINDIR}/usr/lib ${BINDIR}/usr/$(mlibdir) || die
58     # fix pkgconfig file
59     sed -i "s:/usr/lib:/usr/$(mlibdir):g" ${BINDIR}/usr/$(mlibdir)/pkgconfig/hwinfo.pc || die
60     fi
61    
62     minstallman doc/hwinfo.8 || die
63     minstalldocs Changelog COPYING README VERSION || die
64     }

Properties

Name Value
svn:keywords Id