wok view screenfetch/receipt @ rev 25601
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 16 18:06:38 2023 +0000 (15 months ago) |
parents | 6e4600a4fb23 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="screenfetch"
4 VERSION="3.9.1"
5 CATEGORY="utilities"
6 SHORT_DESC="Bash screenshot information tool."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://github.com/KittyKatt/screenFetch"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/KittyKatt/screenFetch/archive/v$VERSION.tar.gz"
14 DEPENDS="bash procps xorg-xdpyinfo"
15 BUILD_DEPENDS=""
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # patch for SliTaz (use basic artwork - job for artwork team?)
28 # patch -i ../../stuff/slitaz.patch replaced by
29 patch -i ../../stuff/patches/screenfetch-dev-$VERSION
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/bin
36 cp -a $src/screenfetch-dev $fs/usr/bin/screenfetch
37 }