wok annotate gritz/receipt @ rev 25029
lives: back out wget_url update
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 19 19:43:34 2022 +0000 (2022-05-19) |
parents | 7f212d212273 |
children | 20ad21d5532c |
rev | line source |
---|---|
pascal@16018 | 1 # SliTaz package receipt. |
pascal@16018 | 2 |
pascal@16018 | 3 PACKAGE="gritz" |
pascal@16018 | 4 VERSION="1.0" |
pascal@16018 | 5 CATEGORY="misc" |
pascal@16018 | 6 SHORT_DESC="A txt reader, which makes you reading twice as fast as usual." |
pascal@16018 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@16018 | 8 LICENSE="GPL2" |
pascal@16018 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@16018 | 10 WEB_SITE="https://github.com/xypiie/gritz" |
pascal@16018 | 11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz" |
pascal@16018 | 12 |
pascal@16018 | 13 DEPENDS="perl-gtk2" |
pascal@16018 | 14 BUILD_DEPENDS="wget perl" |
pascal@16018 | 15 |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24055 | 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
pascal@16018 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16018 | 23 genpkg_rules() |
pascal@16018 | 24 { |
pascal@16018 | 25 libperl=$(tazpkg list-files perl | \ |
pascal@16018 | 26 sed '/^\/usr\/lib\/perl/!d;s|\(/usr/lib/perl[^/]*/[^/]*\).*|\1|;q') |
pascal@16018 | 27 mkdir -p $fs/usr/bin $fs$libperl |
pascal@16018 | 28 cp -a $src/lib/*.pm $fs$libperl |
pascal@16018 | 29 cp -a $src/gritz.pl $fs/usr/bin/gritz |
pascal@16018 | 30 } |
pascal@16018 | 31 |