wok-current view radeontool/receipt @ rev 24459
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 11:53:30 2022 +0000 (2022-02-16) |
parents | 20661c276bcf |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="radeontool"
4 VERSION="1.6.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utility to control ATI Radeon backlight functions on laptops."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="zlib/libpng"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://cgit.freedesktop.org/~airlied/radeontool/"
11 WGET_URL="https://people.freedesktop.org/~airlied/$PACKAGE/$TARBALL"
13 DEPENDS="xorg-libpciaccess"
14 BUILD_DEPENDS="pkg-config xorg-libpciaccess-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure --prefix=/usr \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/* $fs/
36 }