wok view gritz/receipt @ rev 24099

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