wok-current annotate activesupport/receipt @ rev 25024
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 18 20:10:17 2022 +0000 (2022-05-18) |
parents | 63fa34c8d2fa |
children |
rev | line source |
---|---|
slaxemulator@10143 | 1 # SliTaz package receipt. |
slaxemulator@10143 | 2 |
slaxemulator@10143 | 3 PACKAGE="activesupport" |
Hans-G?nter@24106 | 4 VERSION="6.1.4.1" |
slaxemulator@10143 | 5 CATEGORY="system-tools" |
Hans-G?nter@22168 | 6 SHORT_DESC="Database tables mapping to Ruby classes." |
slaxemulator@10143 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15379 | 8 LICENSE="MIT" |
Hans-G?nter@22168 | 9 WEB_SITE="https://rubygems.org/gems/activesupport" |
Hans-G?nter@22168 | 10 |
slaxemulator@10143 | 11 TARBALL="$PACKAGE-$VERSION.gem" |
pascal@20668 | 12 WGET_URL="https://rubygems.org/downloads/$TARBALL" |
slaxemulator@10143 | 13 |
pascal@15379 | 14 DEPENDS="ruby" |
pascal@15379 | 15 BUILD_DEPENDS="ruby-dev" |
pascal@15379 | 16 |
Hans-G?nter@22168 | 17 COOK_OPT="!repack_src !unpack" |
Hans-G?nter@22168 | 18 |
pascal@24353 | 19 # What is the latest version available today? |
pascal@24353 | 20 current_version() |
pascal@24353 | 21 { |
pascal@24353 | 22 wget -O - $WEB_SITE 2>/dev/null | sed '/versions\//!d;s|.*versions/||;s|".*||;q' |
pascal@24353 | 23 } |
pascal@24353 | 24 |
slaxemulator@10143 | 25 # Rules to configure and make the package. |
slaxemulator@10143 | 26 compile_rules() |
slaxemulator@10143 | 27 { |
Hans-G?nter@22168 | 28 local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')" |
Hans-G?nter@22168 | 29 gem install \ |
Hans-G?nter@22168 | 30 --ignore-dependencies \ |
Hans-G?nter@22168 | 31 -i "$DESTDIR/$_gemdir" \ |
Hans-G?nter@22168 | 32 $SOURCES_REPOSITORY/$TARBALL |
slaxemulator@10143 | 33 } |
slaxemulator@10143 | 34 |
slaxemulator@10143 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10143 | 36 genpkg_rules() |
slaxemulator@10143 | 37 { |
slaxemulator@13071 | 38 cp -a $install/usr $fs |
Hans-G?nter@22168 | 39 } |