wok-current view fbcat/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents 26522f279645
children 68c1e9cdd4f9
line source
1 # SliTaz package receipt.
3 PACKAGE="fbcat"
4 VERSION="0.5.1"
5 CATEGORY="misc"
6 SHORT_DESC="Takes a screenshot using the framebuffer device."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://jwilk.net/software/fbcat"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/jwilk/$PACKAGE/releases/download/$VERSION/$TARBALL"
14 SUGGESTED="imagemagick"
15 BUILD_DEPENDS=""
16 HOST_ARCH="i486 arm"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 make
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 cp -a $src/fbcat $fs/usr/bin
35 cp -a $src/fbgrab $fs/usr/bin
36 }