wok view upower/receipt @ rev 25383

updated units (2.19 -> 2.21)
author Hans-G?nter Theisgen
date Sat Jul 30 17:22:12 2022 +0100 (2022-07-30)
parents 934055de50e2
children
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="https://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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 ./configure \
29 --sysconfdir=/etc \
30 --libexecdir=/usr/lib/upower \
31 --localstatedir=/var \
32 $CONFIGURE_ARGS &&
33 make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib $fs/usr/share
40 cp -a $install/etc $fs
41 cp -a $install/var $fs
42 cp -a $install/lib/udev $fs/etc
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib/*.so* $fs/usr/lib
45 cp -a $install/usr/lib/upower $fs/usr/lib
46 cp -a $install/usr/share/dbus-1 $fs/usr/share
47 cp -a $install/usr/share/polkit-1 $fs/usr/share
48 }