SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "rubygems"

# SliTaz package receipt.

PACKAGE="rubygems"
VERSION="3.1.2"
CATEGORY="development"
TAGS="ruby"
SHORT_DESC="Ruby packages Manager."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://www.rubygems.org/"

TARBALL="$PACKAGE-$VERSION.tgz"
WGET_URL="${WEB_SITE}$PACKAGE/$TARBALL"

DEPENDS="libruby-extras ruby"
BUILD_DEPENDS="libruby-extras ruby-dev"

HOST_ARCH="i486 arm"
# ARM: ruby-dev libruby-extras build host must be installed

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/rubygems/rubygems/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ruby setup.rb --destdir=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr

    cp -a $install/usr/lib    $fs/usr
    cp -a $install/usr/bin    $fs/usr
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)