diff --git a/srcpkgs/gir-upower b/srcpkgs/gir-upower new file mode 120000 index 0000000000..9df007da7f --- /dev/null +++ b/srcpkgs/gir-upower @@ -0,0 +1 @@ +upower \ No newline at end of file diff --git a/srcpkgs/upower/gir-upower.template b/srcpkgs/upower/gir-upower.template new file mode 100644 index 0000000000..495d14a24d --- /dev/null +++ b/srcpkgs/upower/gir-upower.template @@ -0,0 +1,17 @@ +# Template file for 'gir-upower'. +# +short_desc="UPower introspection data" +long_desc="${long_desc} + + This package contains the GObject-introspection data of UPower in + binary typelib format." + +Add_dependency run gir-freedesktop +Add_dependency run glib +Add_dependency run upower + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/girepository-1.0 ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/upower/template b/srcpkgs/upower/template index 677cb10ed2..736f1e1db3 100644 --- a/srcpkgs/upower/template +++ b/srcpkgs/upower/template @@ -1,13 +1,12 @@ # Template file for 'upower' pkgname=upower -version=0.9.2 -revision=2 +version=0.9.3 distfiles="http://upower.freedesktop.org/releases/$pkgname-$version.tar.bz2" build_style=gnu_configure configure_args="--localstatedir=/var --with-backend=linux" short_desc="Abstraction for enumerating power devices" maintainer="Juan RP " -checksum=4a0532fbda7afee29984f7b96b3b3114c68b0525278beb10c98ef287ca5a8377 +checksum=05eb4bd73493c779a6972893d7439f92ca8cc30cd81cf00663cfb4dca10896a1 long_desc=" UPower is an abstraction for enumerating power devices, listening to device events and querying history and statistics. Any application or service on @@ -15,7 +14,8 @@ long_desc=" message bus. Some operations (such as suspending the system) are restricted using PolicyKit." -subpackages="upower-devel" +conf_files="/etc/UPower/UPower.conf" +subpackages="upower-devel gir-upower" Add_dependency run glibc Add_dependency run libusb-compat @@ -35,5 +35,6 @@ Add_dependency build libgudev-devel Add_dependency build dbus-devel Add_dependency build dbus-glib-devel Add_dependency build polkit-devel +Add_dependency build gobject-introspection Add_dependency full udev Add_dependency full pm-utils diff --git a/srcpkgs/upower/upower-devel.template b/srcpkgs/upower/upower-devel.template index 39b46dfbfb..7f241016a6 100644 --- a/srcpkgs/upower/upower-devel.template +++ b/srcpkgs/upower/upower-devel.template @@ -6,8 +6,6 @@ long_desc="${long_desc} This package contains the files needed for developing applications that use UPower." -revision=1 - Add_dependency run pkg-config Add_dependency run intltool Add_dependency run libxslt @@ -22,8 +20,9 @@ Add_dependency run upower do_install() { - mkdir -p ${DESTDIR}/usr/lib + mkdir -p ${DESTDIR}/usr/{lib,share} mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/gir-1.0 ${DESTDIR}/usr/share }