wok view rubygems/receipt @ rev 24626
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 07 17:32:18 2022 +0000 (2022-03-07) |
parents | 9a9ffdd97e40 |
children | 0262035dc1e7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="rubygems"
4 VERSION="3.1.2"
5 CATEGORY="development"
6 TAGS="ruby"
7 SHORT_DESC="Ruby packages Manager."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://www.rubygems.org/"
12 TARBALL="$PACKAGE-$VERSION.tgz"
13 WGET_URL="${WEB_SITE}$PACKAGE/$TARBALL"
15 DEPENDS="libruby-extras ruby"
16 BUILD_DEPENDS="libruby-extras ruby-dev"
18 HOST_ARCH="i486 arm"
19 # ARM: ruby-dev libruby-extras build host must be installed
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://github.com/rubygems/rubygems/releases 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ruby setup.rb --destdir=$DESTDIR
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
39 cp -a $install/usr/lib $fs/usr
40 cp -a $install/usr/bin $fs/usr
41 }