# SliTaz package receipt. PACKAGE="actionpack" VERSION="6.1.4.1" CATEGORY="system-tools" SHORT_DESC="Simple, battle-tested conventions for building and testing MVC web applications." MAINTAINER="erjo@slitaz.org" LICENSE="MIT" WEB_SITE="https://rubygems.org/gems/actionpack" TARBALL="$PACKAGE-$VERSION.gem" WGET_URL="https://rubygems.org/downloads/$TARBALL" DEPENDS="activesupport 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 }