wok annotate upower/receipt @ rev 15164

Up xorg-xf86-input-void (1.4.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 15 18:48:58 2013 +0000 (2013-08-15)
parents 2c86719f7944
children 22f47e58bb56
rev   line source
pankso@12412 1 # SliTaz package receipt.
pankso@12412 2
pankso@12412 3 PACKAGE="upower"
pankso@12412 4 VERSION="0.9.15"
pankso@12412 5 CATEGORY="system-tools"
pankso@12412 6 SHORT_DESC="UPower is an abstraction for enumerating power devices."
pankso@12412 7 MAINTAINER="pankso@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
pankso@12412 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@12412 10 WEB_SITE="http://upower.freedesktop.org/"
pankso@12412 11 WGET_URL="http://upower.freedesktop.org/releases/$TARBALL"
pankso@12412 12
pankso@12412 13 DEPENDS="polkit glib libgio dbus dbus-glib libgudev libusb"
pankso@12412 14 BUILD_DEPENDS="polkit-dev glib-dev libgio-dev dbus-dev dbus-glib-dev \
pankso@12412 15 libgudev-dev libusb-dev"
pankso@12412 16
pankso@12412 17 # Rules to configure and make the package.
pankso@12412 18 compile_rules()
pankso@12412 19 {
pankso@12412 20 cd $src
pankso@12412 21 ./configure \
pankso@12412 22 --sysconfdir=/etc \
pankso@12412 23 --libexecdir=/usr/lib/upower \
pankso@12412 24 --localstatedir=/var \
pankso@12412 25 $CONFIGURE_ARGS &&
pankso@12412 26 make && make install
pankso@12412 27 }
pankso@12412 28
pankso@12412 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12412 30 genpkg_rules()
pankso@12412 31 {
pankso@12412 32 mkdir -p $fs/usr/lib $fs/usr/share
pankso@12412 33 cp -a $install/etc $fs
pankso@12412 34 cp -a $install/var $fs
pankso@12412 35 cp -a $install/lib/udev $fs/etc
pankso@12412 36 cp -a $install/usr/bin $fs/usr
pankso@12412 37 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12412 38 cp -a $install/usr/lib/upower $fs/usr/lib
pankso@12412 39 cp -a $install/usr/share/dbus-1 $fs/usr/share
pankso@12412 40 cp -a $install/usr/share/polkit-1 $fs/usr/share
pankso@12412 41 }