wok-6.x annotate fbgrab/receipt @ rev 24465
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 17 12:02:46 2022 +0000 (2022-02-17) |
parents | 924febe49050 |
children | ca9faecbdfad |
rev | line source |
---|---|
pascal@13229 | 1 # SliTaz package receipt. |
pascal@13229 | 2 |
pascal@13229 | 3 PACKAGE="fbgrab" |
Hans-G?nter@20914 | 4 VERSION="1.3" |
pascal@13229 | 5 CATEGORY="misc" |
pascal@13229 | 6 SHORT_DESC="Frame buffer grabber." |
pascal@13229 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
pascal@23910 | 9 WEB_SITE="https://web.archive.org/web/20191223173748/http://fbgrab.monells.se/" |
Hans-G?nter@20914 | 10 |
pascal@13229 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@13229 | 12 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@13229 | 13 |
pascal@13229 | 14 DEPENDS="libpng zlib" |
pascal@13229 | 15 BUILD_DEPENDS="libpng-dev zlib-dev" |
Hans-G?nter@20914 | 16 HOST_ARCH="i486 arm" |
pascal@13229 | 17 |
pascal@24465 | 18 # What is the latest version available today? |
pascal@24465 | 19 current_version() |
pascal@24465 | 20 { |
pascal@24465 | 21 wget -O - https://github.com/GunnarMonell/fbgrab/releases 2>/dev/null | \ |
pascal@24465 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24465 | 23 } |
pascal@24465 | 24 |
pascal@13229 | 25 # Rules to configure and make the package. |
pascal@13229 | 26 compile_rules() |
pascal@13229 | 27 { |
pankso@16095 | 28 #sed -i '/splint/d' Makefile |
pascal@13229 | 29 make |
pascal@13229 | 30 } |
pascal@13229 | 31 |
pascal@13229 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13229 | 33 genpkg_rules() |
pascal@13229 | 34 { |
pascal@13229 | 35 mkdir -p $fs/usr/bin |
pascal@13229 | 36 cp $src/fbgrab $fs/usr/bin |
pascal@13229 | 37 } |