# HG changeset patch # User Christophe Lincoln # Date 1334938554 -7200 # Node ID 2c86719f79442702f37a21ac9c40dbd41b5509d3 # Parent acfbd6b623b6efb28fac030924bdfecfd0af096d Add upower (Freedesktop power framwork diff -r acfbd6b623b6 -r 2c86719f7944 upower-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/upower-dev/receipt Fri Apr 20 18:15:54 2012 +0200 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="upower-dev" +VERSION="0.9.15" +CATEGORY="development" +SHORT_DESC="UPower devel files." +MAINTAINER="pankso@slitaz.org" +WANTED="upower" +WEB_SITE="http://upower.freedesktop.org/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/*.*a $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib + cp -a $install/usr/include $fs/usr +} diff -r acfbd6b623b6 -r 2c86719f7944 upower/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/upower/receipt Fri Apr 20 18:15:54 2012 +0200 @@ -0,0 +1,40 @@ +# SliTaz package receipt. + +PACKAGE="upower" +VERSION="0.9.15" +CATEGORY="system-tools" +SHORT_DESC="UPower is an abstraction for enumerating power devices." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.xz" +WEB_SITE="http://upower.freedesktop.org/" +WGET_URL="http://upower.freedesktop.org/releases/$TARBALL" + +DEPENDS="polkit glib libgio dbus dbus-glib libgudev libusb" +BUILD_DEPENDS="polkit-dev glib-dev libgio-dev dbus-dev dbus-glib-dev \ +libgudev-dev libusb-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/upower \ + --localstatedir=/var \ + $CONFIGURE_ARGS && + make && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib $fs/usr/share + cp -a $install/etc $fs + cp -a $install/var $fs + cp -a $install/lib/udev $fs/etc + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib/*.so* $fs/usr/lib + cp -a $install/usr/lib/upower $fs/usr/lib + cp -a $install/usr/share/dbus-1 $fs/usr/share + cp -a $install/usr/share/polkit-1 $fs/usr/share +}