wok rev 12412
Add upower (Freedesktop power framwork
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 20 18:15:54 2012 +0200 (2012-04-20) |
parents | acfbd6b623b6 |
children | af7e4ca10a06 |
files | upower-dev/receipt upower/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/upower-dev/receipt Fri Apr 20 18:15:54 2012 +0200 1.3 @@ -0,0 +1,18 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="upower-dev" 1.7 +VERSION="0.9.15" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="UPower devel files." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +WANTED="upower" 1.12 +WEB_SITE="http://upower.freedesktop.org/" 1.13 + 1.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.15 +genpkg_rules() 1.16 +{ 1.17 + mkdir -p $fs/usr/lib 1.18 + cp -a $install/usr/lib/*.*a $fs/usr/lib 1.19 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.20 + cp -a $install/usr/include $fs/usr 1.21 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/upower/receipt Fri Apr 20 18:15:54 2012 +0200 2.3 @@ -0,0 +1,40 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="upower" 2.7 +VERSION="0.9.15" 2.8 +CATEGORY="system-tools" 2.9 +SHORT_DESC="UPower is an abstraction for enumerating power devices." 2.10 +MAINTAINER="pankso@slitaz.org" 2.11 +TARBALL="$PACKAGE-$VERSION.tar.xz" 2.12 +WEB_SITE="http://upower.freedesktop.org/" 2.13 +WGET_URL="http://upower.freedesktop.org/releases/$TARBALL" 2.14 + 2.15 +DEPENDS="polkit glib libgio dbus dbus-glib libgudev libusb" 2.16 +BUILD_DEPENDS="polkit-dev glib-dev libgio-dev dbus-dev dbus-glib-dev \ 2.17 +libgudev-dev libusb-dev" 2.18 + 2.19 +# Rules to configure and make the package. 2.20 +compile_rules() 2.21 +{ 2.22 + cd $src 2.23 + ./configure \ 2.24 + --sysconfdir=/etc \ 2.25 + --libexecdir=/usr/lib/upower \ 2.26 + --localstatedir=/var \ 2.27 + $CONFIGURE_ARGS && 2.28 + make && make install 2.29 +} 2.30 + 2.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.32 +genpkg_rules() 2.33 +{ 2.34 + mkdir -p $fs/usr/lib $fs/usr/share 2.35 + cp -a $install/etc $fs 2.36 + cp -a $install/var $fs 2.37 + cp -a $install/lib/udev $fs/etc 2.38 + cp -a $install/usr/bin $fs/usr 2.39 + cp -a $install/usr/lib/*.so* $fs/usr/lib 2.40 + cp -a $install/usr/lib/upower $fs/usr/lib 2.41 + cp -a $install/usr/share/dbus-1 $fs/usr/share 2.42 + cp -a $install/usr/share/polkit-1 $fs/usr/share 2.43 +}