wok view upower/receipt @ rev 24093

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