wok view rubygems/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents b9659e3c2111
children
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 '/tag\//!d;s|.*tag/v*||;s|".*||;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 }