wok view spruz/receipt @ rev 25500
new default version for java8-jre
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 30 10:14:12 2022 +0100 (22 months ago) |
parents | 3c1752d57bae |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="spruz"
4 VERSION="0.2.13"
5 CATEGORY="development"
6 SHORT_DESC="All the stuff that isn't good or big enough for a real library."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://rubygems.org/gems/spruz"
11 TARBALL="$PACKAGE-$VERSION.gem"
12 WGET_URL="https://rubygems.org/downloads/$TARBALL"
14 DEPENDS="ruby"
15 BUILD_DEPENDS="ruby-dev"
17 COOK_OPT="!repack_src !unpack"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed '/versions.[0-9]/!d;s|.*sions/||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 local _gemdir="$(ruby -r rubygems -e'puts Gem.default_dir')"
30 gem install \
31 --ignore-dependencies \
32 -i "$DESTDIR/$_gemdir" \
33 $SOURCES_REPOSITORY/$TARBALL
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/usr $fs
40 }