# 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" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.xz" WEB_SITE="https://upower.freedesktop.org/" WGET_URL="https://upower.freedesktop.org/releases/$TARBALL" DEPENDS="polkit glib libgio dbus dbus-glib libgudev libusb" BUILD_DEPENDS="flex polkit-dev glib-dev libgio-dev dbus-dev dbus-glib-dev \ libgudev-dev libusb-dev libxslt docbook-xsl" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # 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 }