wok view i3status/receipt @ rev 24433
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 18:42:31 2022 +0000 (2022-02-12) |
parents | a78610b2eb47 |
children | f1192af978e8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="i3status"
4 VERSION="2.7"
5 CATEGORY="x-window"
6 SHORT_DESC="i3 status bar"
7 MAINTAINER="ybringler@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://i3wm.org/i3status"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$WEB_SITE/$TARBALL"
13 DEPENDS="alsa-lib yajl wireless_tools"
14 BUILD_DEPENDS="make gcc alsa-lib-dev dev86 libconfuse wireless_tools-dev yajl"
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-/!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 make && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $install/* $fs
33 }