SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "spruz"

# SliTaz package receipt.

PACKAGE="spruz"
VERSION="0.2.13"
CATEGORY="development"
SHORT_DESC="All the stuff that isn't good or big enough for a real library."
MAINTAINER="erjo@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://rubygems.org/gems/spruz"

TARBALL="$PACKAGE-$VERSION.gem"
WGET_URL="https://rubygems.org/downloads/$TARBALL"

DEPENDS="ruby"
BUILD_DEPENDS="ruby-dev"

COOK_OPT="!repack_src !unpack"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/versions.[0-9]/!d;s|.*sions/||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    local _gemdir="$(ruby -r rubygems -e'puts Gem.default_dir')"
    gem    install            \
        --ignore-dependencies    \
        -i "$DESTDIR/$_gemdir"    \
        $SOURCES_REPOSITORY/$TARBALL
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/usr    $fs
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)