wok view file-tail/receipt @ rev 25611
Add zx0
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 01 18:37:27 2023 +0000 (15 months ago) |
parents | a0dccc5d133d |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="file-tail"
4 VERSION="1.2.0"
5 CATEGORY="development"
6 SHORT_DESC="Library to tail files in Ruby."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://rubygems.org/gems/file-tail"
11 TARBALL="$PACKAGE-$VERSION.gem"
12 WGET_URL="https://rubygems.org/downloads/$TARBALL"
14 COOK_OPT="!repack_src !unpack"
15 DEPENDS="ruby spruz"
16 BUILD_DEPENDS="$DEPENDS ruby-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/\/versions\//!d;s|.*versions/||;s|["/].*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')"
29 gem install \
30 --ignore-dependencies \
31 -i "$DESTDIR/$_gemdir" \
32 $SOURCES_REPOSITORY/$TARBALL
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/usr $fs
39 }