wok-6.x annotate upower/receipt @ rev 24554
updated flac and flac-dev again (1.3.3 -> 1.3.4)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 25 11:25:23 2022 +0100 (2022-02-25) |
parents | 6135577f4d08 |
children | e1e1678c5265 |
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" |
pascal@20679 | 10 WEB_SITE="https://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" |
al@19727 | 14 BUILD_DEPENDS="flex polkit-dev glib-dev libgio-dev dbus-dev dbus-glib-dev \ |
al@19727 | 15 libgudev-dev libusb-dev libxslt docbook-xsl" |
pankso@12412 | 16 |
pascal@24462 | 17 # What is the latest version available today? |
pascal@24462 | 18 current_version() |
pascal@24462 | 19 { |
pascal@24462 | 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24462 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24462 | 22 } |
pascal@24462 | 23 |
pankso@12412 | 24 # Rules to configure and make the package. |
pankso@12412 | 25 compile_rules() |
pankso@12412 | 26 { |
pankso@12412 | 27 cd $src |
pankso@12412 | 28 ./configure \ |
pankso@12412 | 29 --sysconfdir=/etc \ |
pankso@12412 | 30 --libexecdir=/usr/lib/upower \ |
pankso@12412 | 31 --localstatedir=/var \ |
pankso@12412 | 32 $CONFIGURE_ARGS && |
pankso@12412 | 33 make && make install |
pankso@12412 | 34 } |
pankso@12412 | 35 |
pankso@12412 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12412 | 37 genpkg_rules() |
pankso@12412 | 38 { |
pankso@12412 | 39 mkdir -p $fs/usr/lib $fs/usr/share |
pankso@12412 | 40 cp -a $install/etc $fs |
pankso@12412 | 41 cp -a $install/var $fs |
pankso@12412 | 42 cp -a $install/lib/udev $fs/etc |
pankso@12412 | 43 cp -a $install/usr/bin $fs/usr |
pankso@12412 | 44 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@12412 | 45 cp -a $install/usr/lib/upower $fs/usr/lib |
pankso@12412 | 46 cp -a $install/usr/share/dbus-1 $fs/usr/share |
pankso@12412 | 47 cp -a $install/usr/share/polkit-1 $fs/usr/share |
pankso@12412 | 48 } |