Magellan Linux

Contents of /trunk/core/hwinfo/hwinfo-16.10-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6073 - (show annotations) (download)
Thu Aug 19 11:50:50 2010 UTC (13 years, 8 months ago) by niro
File size: 1397 byte(s)
-fixed libdir on multilib arches
1 # $Id: hwinfo-16.10-r1.smage2 3664 2009-10-29 01:10:01Z niro $
2
3 PNAME="hwinfo"
4 PVER="16.10"
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-libs/libx86emu-1.1
14 >= sys-fs/sysfsutils-2
15 >= sys-apps/hal-0.5.13
16 >= sys-apps/dbus-1.3"
17
18 SRCFILE="${PNAME}-${PVER}.tar.bz2"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 sminclude mtools
22
23 SRC_URI=(
24 http://ftp.de.debian.org/debian/pool/main/h/${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${PNAME}-${PVER}-debian-all-1.patch
27 mirror://${PNAME}/${PNAME}-13.41-remove-sbin.patch
28 )
29
30 #UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/h/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).orig.*/\1/;$ p'"
31 # fake - taken newest from suse
32 UP2DATE="echo ${PVER}"
33
34 src_prepare()
35 {
36 munpack ${SRCFILE} || die
37 cd ${SRCDIR}
38
39 # apply debian patches
40 mpatch ${PNAME}-${PVER}-debian-all-1.patch || die
41
42 # remove empty $(destdir)/sbin from makefile
43 mpatch ${PNAME}-13.41-remove-sbin.patch || die
44 }
45
46 src_compile()
47 {
48 cd ${SRCDIR}
49 mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) || die
50 }
51
52 src_install()
53 {
54 cd ${SRCDIR}
55 mmake DESTDIR=${BINDIR} LIBDIR=/usr/$(mlibdir) install || die
56 mkeepdir /var/lib/hardware/udi || die
57
58 minstallman doc/hwinfo.8 || die
59 minstalldocs Changelog COPYING README VERSION || die
60 }