wok view tlp/receipt @ rev 25775

luajit, wayland, weston: fix current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 15 16:55:07 2024 +0000 (2 months ago)
parents 8c8f0cd75a42
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tlp"
4 VERSION="1.5.0"
5 CATEGORY="misc"
6 SHORT_DESC="Advanced Power Management for Linux."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2 GPL3"
9 WEB_SITE="https://linrunner.de/en/tlp/tlp.html"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/linrunner/TLP/archive/$VERSION.tar.gz"
14 SUGGESTED="perl"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 make install DESTDIR=$DESTDIR
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $install/* $fs
33 }