# SliTaz package receipt. PACKAGE="rake" VERSION="13.0.1" CATEGORY="system-tools" SHORT_DESC="Make-like program implemented in Ruby." MAINTAINER="erjo@slitaz.org" LICENSE="MIT" WEB_SITE="https://rubygems.org/gems/$PACKAGE" 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\//!d;s|.*versions/||;s|".*||;q' } # Rules to configure and make the package. compile_rules() { local _gemdir="$(ruby -rrubygems -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 }