wok-6.x view rails/receipt @ rev 24459
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 11:53:30 2022 +0000 (2022-02-16) |
parents | 30cc9f65eaa5 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="rails"
4 VERSION="6.0.2.2"
5 CATEGORY="development"
6 SHORT_DESC="REST on Rails."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://rubygems.org/gems/rails"
11 TARBALL="$PACKAGE-$VERSION.gem"
12 WGET_URL="https://rubygems.org/downloads/$TARBALL"
14 DEPENDS="actionmailer actionpack activerecord activeresource activesupport ruby"
15 BUILD_DEPENDS="$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\//!d;s|.*versions/||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')"
30 gem install --ignore-dependencies -i "$DESTDIR/$_gemdir" $SOURCES_REPOSITORY/$TARBALL
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/usr $fs
37 }