Magellan Linux

Contents of /trunk/extras/upower/upower-0.9.20-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17315 - (show annotations) (download)
Sun Jun 9 10:11:40 2013 UTC (11 years ago) by niro
File size: 1595 byte(s)
auto added: ver bump to 0.9.20-r2
1 # $Id$
2
3 PNAME="upower"
4 PVER="0.9.20"
5 PBUILD="r2"
6
7 PCAT="sys-apps"
8
9 DESCRIPTION="D-Bus abstraction for enumerating power devices and querying history and statistics."
10 HOMEPAGE="http://upower.freedesktop.org/"
11
12 DEPEND=">= dev-libs/glib2-2.36
13 >= sys-apps/dbus-1.6
14 >= dev-libs/dbus-glib-0.100
15 >= sys-fs/udev-204
16 >= sys-apps/polkit-0.111
17 >= dev-libs/libusb-1
18 >= sys-apps/pm-utils-1.4"
19
20 SDEPEND=">= app-arch/xz-utils-5
21 >= dev-util/pkgconfig-0.25
22 >= dev-util/intltool-0.50
23 >= dev-libs/libxslt-1.1.26
24 >= dev-libs/gobject-introspection-1.36
25 >= app-text/docbook-xsl-stylesheets-1.75"
26
27 SRCFILE="${PNAME}-${PVER}.tar.xz"
28 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29
30 sminclude mtools mbuild
31
32 SRC_URI=(
33 http://upower.freedesktop.org/releases/${SRCFILE}
34 mirror://${PNAME}/${SRCFILE}
35 )
36
37 UP2DATE="updatecmd_freedesktop ${PNAME} xz"
38
39 src_prepare()
40 {
41 munpack ${SRCFILE} || die
42 cd ${SRCDIR}
43
44 sed -i -e '/DISABLE_DEPRECATED/d' configure || die
45 # fix udev dir location
46 sed -i "s:^\(udevrulesdir =\).*:\1 /usr/lib/udev:" rules/Makefile.{am,in} || die
47 }
48
49 src_compile()
50 {
51 cd ${SRCDIR}
52
53 mconfigure \
54 --libexecdir=/usr/$(mlibdir)/${PNAME} \
55 --localstatedir=/var \
56 --with-html-dir=/usr/share/doc/${PNAME}-${PVER}/html \
57 --with-backend=linux \
58 --disable-verbose-mode \
59 --enable-man-pages \
60 --enable-introspection \
61 --disable-gtk-doc \
62 --disable-tests \
63 || die
64
65 mmake || die
66 }
67
68 src_install()
69 {
70 cd ${SRCDIR}
71 mmake DESTDIR=${BINDIR} install || die
72 minstalldocs COPYING ChangeLog NEWS README TODO || die
73 }
74
75 preinstall()
76 {
77 # adds plugdev group
78 ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
79 }