Magellan Linux

Contents of /trunk/core/hwinfo/hwinfo-13.41-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1500 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/hwinfo/hwinfo-13.41-r4.smage2,v 1.1 2008/04/09 21:55:50 niro Exp $
2
3 PNAME="hwinfo"
4 PVER="13.41"
5 PBUILD="r4"
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.10
15 >= sys-apps/dbus-1.1"
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}-${PVER}-debian-all-1.patch
26 mirror://${PNAME}/${PNAME}-${PVER}-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}-${PVER}-debian-all-1.patch || die
38
39 # remove empty $(destdir)/sbin from makefile
40 mpatch ${PNAME}-${PVER}-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 make 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